HMVC - Access several controllers for same module |
[eluser]vdecaux83[/eluser]
Hello there, I am using HMVC (https://bitbucket.org/wiredesignz/codeig...sions-hmvc). But I have one question.. Is it possible to have several controllers in the same module folder ? Here is my folders : /modules /mymodule /controllers mymodule.php admin.php How can I access by uri to admin controller ? I tried : domain.com/mymodule/admin/method_name But its not works. Is there a way to do this ? Thanks !
[eluser]ivantcholakov[/eluser]
That magic hides in application/config/routes.php. Here you are a real one from an application of mine: Code: $route['default_controller'] = 'home'; Not everything inside is related strictly to the subject. And this is a sample structure of an application: Code: application/ This way is possible, I have real applications using it. But I don't like it. :-) I have two applications ("site" and "admin") and I am mixing artificially them within a single application. ---------------------------------------------------------- It would be better "site" and "admin" applications to be implemented with separation and I am experimenting this next (logical) step. |
Welcome Guest, Not a member yet? Register Sign In |