As stated here : http://codeigniter.com/user_guide/general/cli.html
A page like : http://www.example.com/myController/myFunc/myParam
can be run on the command line as :
php index.php myController myFunc myParam
My codeignitor set up has some folders to group the controllers, lets say like this :
myFolder -> myPageController
-> myAdminController
So, the url becomes :
http://www.example.com/myFolder/myController/myFunc/myParam
How do I call the same thing on CLI ? Something like :
php index.php "myFolder/myController" myFunc myParam
Does not seem to work.
You can try with :
php index.php myFolder myController myFunc myParam1 myParam2 ...
Note, the index method in class file is necessary for work properly in CLI, otherwise codeigniter will return 404 error.
;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With