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?
cyberpol
(Cyberpol 777)
2
I think your method must be called public fucntion actionError(){…
It still not working
public function actionError()
cyberpol
(Cyberpol 777)
4
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