Welcome Guest, Not a member yet? Register   Sign In
Using functions in URI without controller
#6

[eluser]Aken[/eluser]
You can create as specific or generic of routes as you need. So if you have a few controllers that are standard, you can specify them before your generic route. Kinda like:
Code:
$route['(login|logout|account|settings)'] = '$1';
$route['(:any)'] = 'default/$1';
That solution is okay if you don't have a ton of specific controllers you don't want to overwrite, but not really suitable for a full website's worth of controllers. So depending on how many you have, you may want to do change your URLs slightly, and just make sure your visitors are redirected to the new ones properly through .htaccess.


Messages In This Thread
Using functions in URI without controller - by El Forum - 12-19-2009, 11:36 AM
Using functions in URI without controller - by El Forum - 12-19-2009, 01:02 PM
Using functions in URI without controller - by El Forum - 12-19-2009, 02:17 PM
Using functions in URI without controller - by El Forum - 12-20-2009, 01:58 AM
Using functions in URI without controller - by El Forum - 12-20-2009, 09:57 AM
Using functions in URI without controller - by El Forum - 12-20-2009, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB