Welcome Guest, Not a member yet? Register   Sign In
Problem with routes.php and brackets
#8

[eluser]umbungo[/eluser]
AHHHHHHHHHHH finally.

Escaping the brackets does not work. I tried double/triple/quadruple escaping them too. After several hours staring at /trying to figure out /playing with the code trying to get things to work i finally got to the solution;
Code:
$route['Name-With-&\#40;Brackets&\#41;'] = "main/main/Name-With-(Brackets)";
$route['Name-With-&\#40;Brackets&\#40;/:any'] = "main/main/Name-With-(Brackets)/$1";
So thats HTML entity for brackets, IN DECIMAL, and not forgetting the escaping of #. Oddly (with my understanding, anyway), the HEX html entity encoding
Code:
'Name-With-&\#x28;Brackets&\#x29;'
does not work either.

note: I ******* HATE THESE ISSUES WITH CHARACTER ENCODING. How are you meant to tell what form it is deciding to take today? Almost impossible to debug too; echo anything in the browser and it comes out as normal text.


Messages In This Thread
Problem with routes.php and brackets - by El Forum - 04-07-2011, 08:54 AM
Problem with routes.php and brackets - by El Forum - 04-09-2011, 08:12 AM
Problem with routes.php and brackets - by El Forum - 04-09-2011, 03:58 PM
Problem with routes.php and brackets - by El Forum - 04-10-2011, 07:31 AM
Problem with routes.php and brackets - by El Forum - 04-11-2011, 12:34 PM
Problem with routes.php and brackets - by El Forum - 04-14-2011, 01:17 PM
Problem with routes.php and brackets - by El Forum - 04-14-2011, 03:25 PM
Problem with routes.php and brackets - by El Forum - 04-16-2011, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB