It is impossible in Yii2 to associate the URL / user / confirm / email / resent with the method (action) actionConfirmEmailResent of the UserController controller. How to do it right?

    1 answer 1

    For the UserController::actionConfirmEmailResent() action, the url will be user/confirm-email-resent by default.

    If you want /user/confirm/email/resent then change the rules parameter of the urlManager component in the urlManager :

     ... 'components' => [ 'urlManager' => [ ... 'rules' => [ '/user/confirm/email/resent'=>'user/confirm-email-resent' ], ], ...