How To Call Controller/action In Console Command

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

Hi

check this

and this one

I have tried all those methods mentioned in stackoverflow but nothing is working.

check also

http://www.yiiframework.com/forum/index.php/topic/20912-accessing-model-in-console-application/