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.
- 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 email@example.com');