Redirecting To login page if i run codeigniter file through Command line - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Redirecting To login page if i run codeigniter file through Command line (/showthread.php?tid=60105) |
Redirecting To login page if i run codeigniter file through Command line - El Forum - 01-16-2014 [eluser]Harsh[/eluser] Hi, I need to run codeigniter controller through command line I have tried with the example which is given in CI forum.But it is redirecting me to application login page. I have done like: php index.php tools tools message if i run change the $route['default_controller'] = "login/login/login_redirect"; to $route['default_controller'] = "tools/tools/message"; and run php index.php tools tools message then it is working perfect.But i dont want to change $route['default_controller'] value. Please help me out. Thanks Harsh Redirecting To login page if i run codeigniter file through Command line - El Forum - 01-16-2014 [eluser]InsiteFX[/eluser] Look at the _remap CI method |