How can I call controller from console command? Currently I am doing like this but it not working
Yii::import('application.controllers.UserController');
UserController::doit();
I am getting the following error
exception ‘CException’ with message ‘Property “CConsoleApplication.user” is not defined.’ in