Hello. When I create a new action, and switch to it, the backend does not see it, although actionLogout, actionLogin, actionIndex - work, but mine - no.

Code in backend / config / main.php

enter image description here

My .htacces file in the main directory

enter image description here

The .htacces file in the backend / web / directory

enter image description here

frontend actions work fine. This problem is only with actions in the backend.

    1 answer 1

    The answer was that in the controller you need to specify access for the action in the public function behaviors() method

     [ 'actions' => ['youAction', 'page'], 'allow' => true, 'roles' => your role, ],