Yii 1.1.8 or above
You can attach CConsole component in the application configuration file (components section) or use as separate object.
Run yii console command:
$console = new CConsole(); $async = true; $console->runCommand('newsdelivery', array('param1', 'param2'), $async);
Run *nix shell command:
$console = new CConsole(); $async = false; $console->exec('ping 8.8.8.8', $async);
Total 3 comments
Big time.
Very nice extension, thanks!
all yii classes is prefixed by "C" . you can choose another one like : E ...
Leave a comment
Please login to leave your comment.