Error action is not runing

Hello guys

I can’t get my actionError working

my main.php




	'components'=>array(

       'errorHandler'=>array(

            'errorAction'=>'site/error',

		),



My SiteController:




	public function actionerror()

	{

	    if($error=Yii::app()->errorHandler->error)

	    {

$this->render('exception', array( 'error' => $error));

}

}



My error occurs insinde a module controller. Is it wrong?

I think your method must be called public fucntion actionError(){…

It still not working




public function actionError()



checke the E of error must be E not e

I am sorry

public function action Error( )

It still not working.

When I write it here it correct the text to lower case.

I really don’t know what’s going on…

Come on. Was just a stupid thing, I forgot changing YII_DEBUG value to false