Modules |
Replace 'third_party' to 'Modules' for HMVC applications!
I suggest to load module using the following code : Code: $this->load->module('path_inside_modules', 'rename_if_need'); then use it as codeigniter "application" like : Code: // path: "/www/ci/application/modules/path_inside_modules/views/welcome.php" Just like loading library. Module loader might need controller loader also, to execute functions in that module controller. Ci4/Router and any related components should support modular applications by default!
By the way, i`m coming from ci3, and i don't know how ci4 is working
Just want it to organized and modular application.
You really need to read up on CI4 a bit ... modules, routing, namespaces.
https://codeigniter4.github.io/userguide/ There are multiple threads about this in the CI4 featire requests subforum too. And then there are Lonnie's blogs http://blog.newmythmedia.com/blog/show/2...eIgniter_4
Then let us move this thread for Ci3. Change `third_party` to `modules` and support it future versions Ci3.1.1x
For me, Ci3 seems better and easier, i didn't like Ci4! |
Welcome Guest, Not a member yet? Register Sign In |