Is it possible in codeigniter 3x. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Is it possible in codeigniter 3x. (/showthread.php?tid=63943) |
Is it possible in codeigniter 3x. - Php - 12-25-2015 Hello Brothers, I'm working with codeigniter since 2.5 year And I love this framework. But now i need/want to add sub-directories in controller or model folder. I tried this but getting 404 error. PHP Code: controller/Admin/Admin.php PHP Code: models / Admin / model_admin.php Many Thanks. RE: Is it possible in codeigniter 3x. - imwwp - 12-25-2015 Keep the dir name in lowcase, and Class file in Ucfirst,and try again RE: Is it possible in codeigniter 3x. - skunkbad - 12-26-2015 The docs show how to load models in subdirectories here: https://www.codeigniter.com/user_guide/libraries/loader.html PHP Code: $this->load->model('admin/model_admin'); As for the controllers in subdirectories, see here: https://www.codeigniter.com/user_guide/general/controllers.html?highlight=controllers#organizing-your-controllers-into-sub-directories RE: Is it possible in codeigniter 3x. - Php - 12-26-2015 (12-26-2015, 12:16 AM)skunkbad Wrote: The docs show how to load models in subdirectories here: Thank you. |