• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#3
http://www.codeigniter.com/userguide3/in...4-override
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.