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

#1
[eluser]dedavai[/eluser]
is it possible to run CI from a Linux shell script? Would I point it to the index.php or the controller?

#2
[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.

#3
[eluser]champs[/eluser]
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.

#4
[eluser]Randy Casburn[/eluser]
@champs,

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

Randy


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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