Welcome Guest, Not a member yet? Register   Sign In
What is the best way to achieve modular separation or HMVC in CI3?
#4

Wiredesignz' HMVC works fine with CI3, as long as you use the CI3 version (which is what you've linked), and you extend the MX_Controller in your base controller (or in all of your controllers if you don't have a base controller). The controllers created in any modules would also have to extend MX_Controller or another controller which extends MX_Controller.

By default, it routes http://localhost/contacts to /application/modules/contacts/controllers/Contacts or /application/controllers/Contacts (it will search the paths in that order). If you wanted it to only route to the modules directory when you used http://localhost/modules, you'd have to modify the MX_Router.
Reply


Messages In This Thread
RE: What is the best way to achieve modular separation or HMVC in CI3? - by mwhitney - 06-02-2016, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB