Welcome Guest, Not a member yet? Register   Sign In
Redirecting To login page if i run codeigniter file through Command line


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.


Look at the _remap CI method

Theme © iAndrew 2016 - Forum software by © MyBB