Welcome Guest, Not a member yet? Register   Sign In
Default Method for Controllers
#1

[eluser]Unknown[/eluser]
I put my controllers in subfolders and I'm trying to modify the routes to set a default method for all controllers. Here is what I have:

Code:
$route['(:any)'] = "$0/dashboard";

This works, until I try and access any method other than dashboard, then it gives me a 404.


Messages In This Thread
Default Method for Controllers - by El Forum - 09-03-2009, 08:35 AM
Default Method for Controllers - by El Forum - 09-03-2009, 08:48 AM
Default Method for Controllers - by El Forum - 09-03-2009, 10:58 AM
Default Method for Controllers - by El Forum - 09-03-2009, 12:29 PM
Default Method for Controllers - by El Forum - 09-03-2009, 12:58 PM
Default Method for Controllers - by El Forum - 09-03-2009, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB