URI Ruting rule(s) for sub directorie(s) / folder(s) - 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: URI Ruting rule(s) for sub directorie(s) / folder(s) (/showthread.php?tid=14385) |
URI Ruting rule(s) for sub directorie(s) / folder(s) - El Forum - 12-31-2008 [eluser]$@!ful[/eluser] Directory structure of my controllers directory is: Code: -controllers My routing configuration settings are: Code: $route['default_controller'] = "classic/home"; So when I browse: sitename/ then it loads controllers/home.php and when I browse sitename/classic then it lodes controllers/classic/home.php but when I browse sitename/classic/visitor it generates a 404 error Please help me to solve this problem. URI Ruting rule(s) for sub directorie(s) / folder(s) - El Forum - 12-31-2008 [eluser]Michael Wales[/eluser] Controllers may only be one folder level deep within the /controllers directory. URI Ruting rule(s) for sub directorie(s) / folder(s) - El Forum - 12-31-2008 [eluser]$@!ful[/eluser] [quote author="Michael Wales" date="1230763829"]Controllers may only be one folder level deep within the /controllers directory.[/quote] Please give me any idea so that I can implement my above directory structure within one folder level deep. URI Ruting rule(s) for sub directorie(s) / folder(s) - El Forum - 12-31-2008 [eluser]Adam Griffiths[/eluser] Go look in the routes library, find out where it looks in a sub-directory and change as needed. Of course, create a My_Router library in your libraries/ folder and properly extend the CI_Router library. |