Answer the question
In order to leave comments, you need to log in
Why does ForbiddenHttpException in Yii2 not render the view specified in the config?
Good day. I just can't understand why ForbiddenHttpException in Yii2 doesn't render the view specified in the config (site/error)?
Instead of view, I get the Error Name and Stack trace
In the code, everything is standard:
Controller
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction'
]
];
}
'errorHandler' => [
'errorAction' => 'site/error',
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question