php/kohana - auto script execute every X time« Wróć do listy pytań
php/kohana - auto script execute every X time
|
▲ ▼ |
1. enable minion module inside bootstrap.php (http://muszak.eu/answers/phpkohana-please-enable-the-minion-module-for-cli-support/) Create demo.php file inside application/classes/Task/Demo.php
'bar', 'bar' => NULL, ); /** * This is a demo task * * @return null */ protected function _execute(array $params) { var_dump($params); echo 'foobar'; Request::factory('MyController/DoSomething')->execute(); } } 3. (WIN) Open taskschd.msc and addo script:
php.exe index.php --task=Demo |