Welcome Guest, Not a member yet? Register   Sign In
The route question and site_url
#1

[eluser]luffy[/eluser]
I use site_url to show the url link.
When I made some routes with the url like this:
$route['mine'] = 'abc/mine';

Why doesn't the link become 'mine' automatically?
#2

[eluser]Jamie Rumbelow[/eluser]
The routing system is very rudimentary, in the sense that it's only built to remap URIs when the request is received to other URIs. You're responsible for linking to the correct URL in your links, whether that's in site_url() or directly in an anchor tag; CodeIgniter won't do it for you.

Jamie




Theme © iAndrew 2016 - Forum software by © MyBB