Answer the question
In order to leave comments, you need to log in
Why in Yii2 two beforeAction() doesn't work?
Hello!
for example, I have one main controller AppController and it has beforeAction()
and there is a SiteController and it also has beforeAction() and it inherits from AppController
the problem is that the function from beforeAction() of the main controller will not work when working. and beforeAction() SiteController works fine,
what did I do wrong? or missed something?
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