Welcome Guest, Not a member yet? Register   Sign In
Routes
#1

[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!




Theme © iAndrew 2016 - Forum software by © MyBB