Welcome Guest, Not a member yet? Register   Sign In
Route doesn't work
#3

[eluser]CroNiX[/eluser]
Routes won't change what appears in the URL anyway; you'd have to do that with htaccess. All a route does is take the request, if it matches the route conditions) and sends it to a different controller than would normally be used.

So if your route was:
Code:
$route["test"] = "blogs";

The url is still "http://yoursite.com/test", but it will load the "blogs" controller (which must exist) instead of the "test" controller (which doesn't have to exist - it's just the named route).


Messages In This Thread
Route doesn't work - by El Forum - 01-16-2013, 03:48 AM
Route doesn't work - by El Forum - 01-16-2013, 01:11 PM
Route doesn't work - by El Forum - 01-16-2013, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB