Welcome Guest, Not a member yet? Register   Sign In
How to make request to non-existent controller mapped to given controller?
#3

[eluser]mattpointblank[/eluser]
In application/config/routes.php:

Code:
$route['(:any)'] = "usercontroller/$1";

This will send any link like yoursite.com/parameter to usercontroller/parameter. The drawback of this is that for every 'static' controller you create, you'll have to add it as a route.


Messages In This Thread
How to make request to non-existent controller mapped to given controller? - by El Forum - 04-30-2010, 04:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB