Welcome Guest, Not a member yet? Register   Sign In
anchor() function doesn't respect custom routes?
#1

[eluser]bezking[/eluser]
Hi all,

I have a custom route in place that redirects as follows:
Code:
$route['internship(:num)'] = "internsite/viewInternship/$1";

However, links generated by the anchor() function still create the original URI to use in the link. Is there any way I can force anchor() to respect my custom routes?

Thanks !
#2

[eluser]bretticus[/eluser]
Custom routes only work internally. That is, match a URL pattern and internally redirect to another path. The anchor() function only fixes up the URL that you send it.
#3

[eluser]bezking[/eluser]
Gotcha... Thanks bretticus.




Theme © iAndrew 2016 - Forum software by © MyBB