Running via the CLI on Windows 7 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Running via the CLI on Windows 7 (/showthread.php?tid=65384) |
Running via the CLI on Windows 7 - razorg1991 - 06-06-2016 Sorry for my bad English. CI 3.0.6 + cli Win7 + Virtual Server Denwer I have a next problem: I try launch controller in cli. In CLI I write next Code: w: in %php% I installed var environment to php.exe. When I call this Code: %php% index.php cron/tasklist Result is ok: hello world! If I postpone tasklist.php in /controller folder without subfolder /cron, and perform request Code: %php% index.php tasklist If I pass params in CLI Code: %php% index.php cron/tasklist param1 CI generates the error "The controller/method pair you requested was not found". In other case Code: %php% index.php cron/tasklist/param1 result analogical - not found. What I do wrong? How I can pass params in controller? RE: Running via the CLI on Windows 7 - ivantcholakov - 06-06-2016 Probably there are other ways, I personally use this one: http://code.tutsplus.com/tutorials/6-codeigniter-hacks-for-the-masters--net-8308 , see "4. Running CodeIgniter from the Command Line" |