errorhandler in modules

i have a company module. in the init, i have the following.




$this->setComponents(array(

    'errorHandler'=>array('errorAction'=>"{$this->id}/default/error"),



what does {$this->id}/default/error really means?

because if i change to {$this->id}/default/login or whatever, it doesnt affect anything when i throw exception in the controller. eg.


throw new CHttpException(404,'The specified post cannot be found.');

actionError() will be executed regardless of the values ‘error’ ‘login’ or something else.

hi…anyone can enlighten me?

help help :-[

Hi,





$this->setComponents(array(

    'errorHandler'=>array('errorAction'=>"{$this->id}/default/error"),



you are saying YII error handler… when ever error happens in my module… just show this error page.

Error page located in following path

{$this->id}/default/error

{$this->id} – Module name

/default – Controller name

/error – Action name

I hope it will help some one :)