• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirecting To login page if i run codeigniter file through Command line

#1
[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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