Welcome Guest, Not a member yet? Register   Sign In
why sub-folder controller class is not working as default controller in 3.x ?
#1

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.
Reply
#2

$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
Reply
Reply




Theme © iAndrew 2016 - Forum software by © MyBB