![]() |
Folder with same name of a class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Folder with same name of a class (/showthread.php?tid=33827) |
Folder with same name of a class - El Forum - 09-09-2010 [eluser]Hugo Tessaro[/eluser] Hello, Is possible to do this? \controllers -\account ---management.php -account.php a folder with same name of a file in the same dir? Ty Folder with same name of a class - El Forum - 09-09-2010 [eluser]WanWizard[/eluser] No. Both in 1.7.2 and in 2.0, the Router class checks first if a controller exists with the name of the first URI segment. If so, it doesn't look any further. So http://hostname/account/management will always load the account controller. Folder with same name of a class - El Forum - 09-09-2010 [eluser]Hugo Tessaro[/eluser] Oh, thank you! |