I have a console command to generate user report. I want to call the same from my web application. I am using Yii 2.0.0 beta version.I tried to follow answers given in this
I think this is the simplest solution:
$controller = new YourConsoleController(Yii::$app->controller->id, Yii::$app); $controller->actionYourConsoleAction();