CodeIgniter Forums

Full Version: Redirecting To login page if i run codeigniter file through Command line
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[eluser]InsiteFX[/eluser]
Look at the _remap CI method