This extension is a trigger for console application. It's will call and running console command that already defined in protected/commands directory on background.
Requirements ¶
Console application
Usage ¶
- Put TConsoleRunner.php on extensions or components directory
- Create your console.php file or use that included in this extensions and put it on root directory of your application or same location with index.php.
- Create your console command and put it on protected/commands directory
- Trigger the console command from your web application like this:
$console=new TConsoleRunner('console.php');
$console->run('parsing filetoparse.xls');
$console->run('sendnotifemail tyohan@myemail.com');
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.