SubFolder | Route | Controller |
[eluser]al3xandre[/eluser]
Hi all, That's my first message here ! I recently discovered CI and I decided to try it for a php CMS project I want to put all the code of my backend in a "admin" folder. I checked the Controller Doc and I Saw : Quote:Each of your sub-folders may contain a default controller which will be called if the URL contains only the sub-folder. Simply name your default controller as specified in your application/config/routes.php fileOk but how assign the default-controller to my admin folder ? Code: $route['admin'] = 'login' Thank you for your help !
[eluser]Michael Ekoka[/eluser]
try this: Code: // default controller
[eluser]esra[/eluser]
The next release of the Modular Separation contribution will include code for managing the routes for subfolders or multiple controllers stored in the same module directory structure. The Modular Separation project has been making a considerable number of improvements that work around some of CI's limitations. Check the Modular Separation thread for more details.
[eluser]al3xandre[/eluser]
Thank you ! I'm quite surprised that it hasn't been fixed in the core yet |
Welcome Guest, Not a member yet? Register Sign In |