Is "Directory" a reserved word? |
[eluser]fesweb[/eluser]
I would like to create a controller named directory, but it refuses to work until I change the name to directory2. In looking at the reserved words list for code igniter, I don't see a problem - and I can't find a similar list for php itself. What am I missing? Thanks.
[eluser]bastones[/eluser]
Can I see your code, specifically the Controller code? Not sure if anyone can do much without it.
[eluser]fesweb[/eluser]
Here it is. http://foo.com/directory/ does not work (blank page): Code: class Directory extends Controller { Code: class Directory2 extends Controller {
[eluser]Colin Williams[/eluser]
It's reserved by PHP, not CI. Pretty sure it's used by the PHP dir() function Code: print_r(get_class_methods('Directory'));
[eluser]dcunited08[/eluser]
[url="http://us2.php.net/manual/en/class.dir.php"]PHP Man[/url]
[eluser]fesweb[/eluser]
Thanks. I figured, but my searches weren't turning up anything... |
Welcome Guest, Not a member yet? Register Sign In |