• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code igniter from shell?

is it possible to run CI from a Linux shell script? Would I point it to the index.php or the controller?

[eluser]Randy Casburn[/eluser]
@dedavai -- yes, you can replace almost your entire csh, bornsh, bash, etc. with a phpsh if you would like. Having CI there would be interesting as an MVC design pattern makes little sense from a shell script though.

How to invoke a CodeIgniter app from the command line/shell

Adapt as needed for *sh.

There are any number of reasons why you might want to do this, but the most important would be the DRY principle.

[eluser]Randy Casburn[/eluser]

Thanks champs -- I do a lot of cli stuff, but through a browser client. Doesn't look like you like that idea too much.

Here's a fun story foy you in case you've not seen.. http://winbinder.org/index.php


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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