Showing Modules

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

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!

I mean the map that shows all your VA’s routes it was in some of the older version of VMS anyway

Did you try /index.php/routemap?

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

What code are you using?

http://euroskies.vacau.com/index.php/routemap/view

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/

Thanks

although it only seems to shoe half of out routes? It’s missing all flights from cork

It shows only 20 routes, to avoid overloading the browser

ahh i see

ill just make a custom one so

There’s a setting for how many it shows