Answer the question
In order to leave comments, you need to log in
How to set up an error output when a controller rule is violated?
I put a restriction on access to the action
controller, prescribed the following rule:
[
'allow' => true,
'actions' => ['login' , 'registration'],
'roles' => ['?'],
],
An Error occurred while handling another error:
yii\web\ForbiddenHttpException: You are not allowed to perform this action.
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