CodeIgniter Forums
Command Line Interface compatibility in CI2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Command Line Interface compatibility in CI2 (/showthread.php?tid=38200)



Command Line Interface compatibility in CI2 - El Forum - 02-01-2011

[eluser]Stunt[/eluser]
This is one of including changes in CI2 change log.1
so personally, I doesn't analyse new version yet.
Who know about "Command Line Interface compatibility" and "Command line compatibility for easy cron jobs" in CI v2 ?
did you know some detaile about that ?
I think It should be very interesting especially about Cron :-?


Command Line Interface compatibility in CI2 - El Forum - 02-02-2011

[eluser]Drew J[/eluser]
I have this same question. Is there any elaboration on CLI + CodeIgniter? Very interested. Smile

Like Stunt, I haven't jumped into 2.0 yet, but will be in the next few weeks.


Command Line Interface compatibility in CI2 - El Forum - 02-09-2011

[eluser]Nowakis[/eluser]
Try this:

Code:
#php -f index.php controller/method

Work!!!


Command Line Interface compatibility in CI2 - El Forum - 03-09-2011

[eluser]ipsod[/eluser]
***** Nevermind, I fixed the command line bootstrapper with this:
Code:
if( defined('CRON') ) {
    $config['uri_protocol']    = "PATH_INFO";
} else {
    $config['uri_protocol']    = "QUERY_STRING";
}