Welcome Guest, Not a member yet? Register   Sign In
route any to a controller
#3

[eluser]Unknown[/eluser]
Yes it works thank you.

It didn't work because it's overriden by the default controller.

Example : if i write :

Code:
$route['default_controller'] = "welcome";
$route['(:any)'] = "site/$1";

example.com/ displays the welcome controller but example.com/method displays site/method (good).

So i had to define $route['default_controller']="site" too and it works.


Messages In This Thread
route any to a controller - by El Forum - 06-09-2012, 09:46 AM
route any to a controller - by El Forum - 06-09-2012, 10:55 AM
route any to a controller - by El Forum - 06-09-2012, 02:38 PM
route any to a controller - by El Forum - 06-09-2012, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB