Welcome Guest, Not a member yet? Register   Sign In
problem with chars in classes
#1

[eluser]AndyBrandy[/eluser]
Hello,

i have on my old blog some urls like this: http://example.com/class-first/

When i create controller "class-first", it must have name "Class-first".
But it returns error: Parse error: syntax error, unexpected '-', expecting '{' in /data/www/test.ex/system/application/controllers/class-first.php on line 3

What can i do when i don't want change url?
#2

[eluser]Michael Wales[/eluser]
Change the URL, then do a 301 Redirect from your old name with the dash to the new class without the dash.




Theme © iAndrew 2016 - Forum software by © MyBB