Codeigniter 3 + HMVC (sub-direcotry in modules) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Codeigniter 3 + HMVC (sub-direcotry in modules) (/showthread.php?tid=69412) |
Codeigniter 3 + HMVC (sub-direcotry in modules) - csanesz - 11-17-2017 I use HMVC wiredesignz third party to use modular structure for Codeigniter. I there a way to create a subfolder in the modules directory ? I want something : Code: modules Of course I've tried to call with : Code: base_url('admin/module2/index'); I've got a 404 error. Is this possible ? Thanks RE: Codeigniter 3 + HMVC (sub-direcotry in modules) - csanesz - 11-18-2017 Hello! I solved! The link below has helped solve this problem. https://forum.codeigniter.com/thread-9157-post-59163.html#pid59163 The module name and controller name may be different. domain\module\controllers\method\param If the module name equal the controller name, it is enough the controller name. domain\controllers\method\param So directory structure: Code: modules RE: Codeigniter 3 + HMVC (sub-direcotry in modules) - InsiteFX - 11-18-2017 If you look at the documentation there is also a config item that can be added to the CodeIgniter configuration file. RE: Codeigniter 3 + HMVC (sub-direcotry in modules) - csanesz - 11-18-2017 Which one do you think? |