Conor Posted February 19, 2010 Report Share Posted February 19, 2010 Im trying to figure out how to show modules on a page and i dont know how for example i want to put the RouteMap on a page what do i need and where do i put it? Thanks Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted February 19, 2010 Report Share Posted February 19, 2010 Im trying to figure out how to show modules on a page and i dont know how for example i want to put the RouteMap on a page what do i need and where do i put it? Thanks Try this for the routemap (by routemap do you mean show how the flights by a pilot?): <?php MainController::Run('RouteMap', 'index'); ?> Put it wherever you want it to appear. The Template for this is: <?php MainController::Run('ModuleName', 'function name'); ?> Module Name -> duh, the module name Function Name -> Usually you would put index but if it is for example your want to view schedules on a page you would do this: <?php MainController::Run('Schedules', 'View'); ?> Its the URL broken down so for example: Viewing schedules is www.yoursite.com/index.php/schedules/view Hope this helps! Quote Link to comment Share on other sites More sharing options...
Conor Posted February 19, 2010 Author Report Share Posted February 19, 2010 I mean the map that shows all your VA's routes it was in some of the older version of VMS anyway Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 19, 2010 Administrators Report Share Posted February 19, 2010 Did you try /index.php/routemap? Quote Link to comment Share on other sites More sharing options...
Conor Posted February 19, 2010 Author Report Share Posted February 19, 2010 Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'RouteMap::view' was given in /home/a1225568/public_html/core/classes/MainController.class.php on line 292 This came up Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 20, 2010 Administrators Report Share Posted February 20, 2010 What code are you using? Quote Link to comment Share on other sites More sharing options...
Conor Posted February 20, 2010 Author Report Share Posted February 20, 2010 http://euroskies.vacau.com/index.php/routemap/view Quote Link to comment Share on other sites More sharing options...
TennShadow Posted February 20, 2010 Report Share Posted February 20, 2010 http://euroskies.vac...p/routemap/view Try it without the /view and it shows the map just fine. http://euroskies.vacau.com/index.php/routemap/ Quote Link to comment Share on other sites More sharing options...
Conor Posted February 20, 2010 Author Report Share Posted February 20, 2010 Thanks although it only seems to shoe half of out routes? It's missing all flights from cork Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 20, 2010 Administrators Report Share Posted February 20, 2010 It shows only 20 routes, to avoid overloading the browser Quote Link to comment Share on other sites More sharing options...
Conor Posted February 20, 2010 Author Report Share Posted February 20, 2010 ahh i see ill just make a custom one so Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 21, 2010 Administrators Report Share Posted February 21, 2010 There's a setting for how many it shows Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.