Welcome Guest, Not a member yet? Register   Sign In
Running via the CLI on Windows 7
#1

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:
cd w:\home\localhost\www\myproject
%php% index.php cron/tasklist


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
result is empty in cli, no result ))))  Huh

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?
Reply
#2

Probably there are other ways, I personally use this one: http://code.tutsplus.com/tutorials/6-cod...--net-8308 , see "4. Running CodeIgniter from the Command Line"
Reply




Theme © iAndrew 2016 - Forum software by © MyBB