Modules - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Modules (/showthread.php?tid=74369) |
Modules - Idea - 09-16-2019 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! RE: Modules - Idea - 09-16-2019 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. RE: Modules - ciadmin - 09-16-2019 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/2016-03-15_Modules_in_CodeIgniter_4 RE: Modules - Idea - 09-22-2019 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! |