Welcome Guest, Not a member yet? Register   Sign In
another dynamic routes topic
#8

[eluser]jakelehner[/eluser]
I see. So really what you need to do is get a dynamic list of all your controllers, and build routes based on them?

Kind of a 'brute force' approach ... but maybe you could use the file helper to get a file listing of everything under your controllers directory, then loop through and build your route array dynamically. If the CI helpers aren't available, the same could be accomplished fairly easily with native PHP.


Messages In This Thread
another dynamic routes topic - by El Forum - 03-08-2012, 03:52 PM
another dynamic routes topic - by El Forum - 03-08-2012, 04:16 PM
another dynamic routes topic - by El Forum - 03-08-2012, 04:23 PM
another dynamic routes topic - by El Forum - 03-08-2012, 04:40 PM
another dynamic routes topic - by El Forum - 07-06-2012, 08:14 AM
another dynamic routes topic - by El Forum - 07-06-2012, 09:14 AM
another dynamic routes topic - by El Forum - 07-06-2012, 10:02 AM
another dynamic routes topic - by El Forum - 07-06-2012, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB