Welcome Guest, Not a member yet? Register   Sign In
Routes, routes...
#4

[eluser]mddd[/eluser]
Routes are used if you need a certain url to start a DIFFERENT controller/method than standard.
Standard means hte basic url of /controller/method/variables. If you do that, you don't need any routes.
But if you wanted to have the url /sitecontent/controller/method/ then you would make a route like this:
Code:
$route['sitecontent/(.*)'] = '$1';
See the Routes page of the CI manual for more info.


Messages In This Thread
Routes, routes... - by El Forum - 07-20-2010, 05:04 AM
Routes, routes... - by El Forum - 07-20-2010, 05:20 AM
Routes, routes... - by El Forum - 07-20-2010, 05:25 AM
Routes, routes... - by El Forum - 07-20-2010, 05:29 AM
Routes, routes... - by El Forum - 07-20-2010, 05:33 AM
Routes, routes... - by El Forum - 07-20-2010, 05:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB