[eluser]bugboy[/eluser]
EDIT [ sorted answer at the bottom]
[quote author="Sam Dark" date="1225760383"]Useful contribution for MY_Router.
Initial idea by
-=ZaRaZa=-.
What's it adds
It adds ability to add routes from within
routes.php config located in your module. Global routes.php is still the boss allowing to remap default routes defined in your modules.
Code
Code:
function _set_routing()
{
//All code below is a copy-paste from CI_Router.
// Load routes from ME modules
$modules = dir(MODBASE);
while (false !== ($module = $modules->read())) {
if($module != '.' && $module != '..'){
@include(MODBASE.$module.'/config/routes'.EXT);
}
}
$modules->close();
//End of code addition
//Following code is a copy-paste from CI_Router.
// Load the routes.php file.
@include(APPPATH.'config/routes'.EXT);
//etc.
Hope this will make it's way into ME.[/quote]
IVe downloaded and installed the ME into my system and it works great the above code looks like it will do what i want however i can't seem to find the place to put it into the My_Router.php file.
I'm using the php5 version
SORTED
Just copy the _set_routing() function from CI Router and past it into My_Router Replacing the first part with the above code.