CodeIgniter Forums
Routes - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Routes (/showthread.php?tid=7561)



Routes - El Forum - 04-14-2008

[eluser]CodyPChristian[/eluser]
Hey again CI community, I got a odd Routes question.

I have a route setup where everything routes to a controller:

$route['(.*)'] = "pages/index/$1";

I must keep this functionality, so with that said any Physical Controllers and their functions must be fully defined in my routes.

So my question is how can I do this differently where I don't have to define every single controller and its inside functions, but keeping it so everything /* is routed to the pages controller minus the physical controllers? Even if I only had to define the controllers and not just the functions.

I hope this makes sense! Thanks!