Welcome Guest, Not a member yet? Register   Sign In
The URI you submitted has disallowed characters: $1
#4

[eluser]BrianDHall[/eluser]
[quote author="Takapaka" date="1256692160"]Actually to beter ilustrate please have a look at this line>

$route[’(:any)/(:num)’] = “gifts/users_gifts_public/$1/$2”;

I just need urls like ../tom/123 work and return me user and ID to verify it in my code.

Basically the problem is that $1 is not recognised as variable (I guess $2 neither) so the routing doesnt work as instead "tom" url receives "$1"

The annoying thing is that so many people have come across this problem and there is no solution posted on the forum.[/quote]

OK, you just need some custom regex then, don't worry about the built-in :any sort of helpers. Nothing like good old regex.

What exactly would some real strings look like? I'm sure we could help you build a regex that would do what you want.


Messages In This Thread
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 01:08 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 01:35 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 02:09 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 02:35 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 02:48 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 03:29 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 03:37 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 03:46 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 03:55 PM
The URI you submitted has disallowed characters: $1 - by El Forum - 10-27-2009, 03:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB