![]() |
why sub-folder controller class is not working as default controller in 3.x ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: why sub-folder controller class is not working as default controller in 3.x ? (/showthread.php?tid=62877) |
why sub-folder controller class is not working as default controller in 3.x ? - kumaranup594 - 09-03-2015 I am using using codeigniter from last 2.5 year, and just switched over 3.x, but today I got we cannot make default controller to a class that doesn't exists in root of controller. What I m trying : /controller/auth/Login auth is a directory Login is a class when i got with base_url/auth/Login It works fine. same I have assigned in default controller : $route['default_controller'] = 'auth/Login'; It doesn't work. Can some please tell me if there is any possibility to resolve this issue. RE: why sub-folder controller class is not working as default controller in 3.x ? - freddy - 09-04-2015 $route['default_controller'] = 'auth/Login'; why the route has upper case Login, please change become login this never tested ! tell me if it works if doesn't work might be some one here will answer it RE: why sub-folder controller class is not working as default controller in 3.x ? - Narf - 09-04-2015 http://www.codeigniter.com/userguide3/installation/upgrade_300.html#directories-and-default-controller-404-override |