Welcome Guest, Not a member yet? Register   Sign In
replacing function name into a username
#1

[eluser]VinceVe[/eluser]
Hey guys I'm making a community site on CI, but now I'm having this problem:
I wnat to have mysite.com/profile/USERNAME. How can I get this ?

Thanks in advance.
#2

[eluser]Phil Sturgeon[/eluser]
Read up on URI routing.
#3

[eluser]VinceVe[/eluser]
If I use :any, does he ignore the not allowed URI characters ?
#4

[eluser]Bramme[/eluser]
You could also use a _remap function! Though I agree, routes would be a better way. I do not know if :any ignores disallowed characters, you should try it out, but I don't think it will.
#5

[eluser]Phil Sturgeon[/eluser]
:any is just replaced by the regular expression .+ so it means literally anything that it comes across.

This doesn't mean it will let disallowed characters through though. It just means it will match against anything that makes it past the route validation.




Theme © iAndrew 2016 - Forum software by © MyBB