Is it a reserved name? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Is it a reserved name? (/showthread.php?tid=8247) |
Is it a reserved name? - El Forum - 05-11-2008 [eluser]Référencement Google[/eluser] Hi, I tried to name a controller "directory.php" but I get a "Fatal error: Cannot redeclare class Directory" error message. Is Directory a reserved name? If yes, then it need to be added to the reserved names user guide page. Is it a reserved name? - El Forum - 05-11-2008 [eluser]Seppo[/eluser] That's a PHP predefined class. All PHP classes are reserved, of course, because you can't have two classes with the same name. Is it a reserved name? - El Forum - 05-11-2008 [eluser]Référencement Google[/eluser] Ho ok, didn't know that one! Thanks. |