Yii2指向其他页面的用户链接无法正常工作

Yii2指向其他页面的用户链接无法正常工作,yii2,yii2-user,Yii2,Yii2 User,我安装了yii2用户。在登录视图中,表单底部有几个链接 <?= Html::a(Yii::t('user', 'Didn\'t receive confirmation message?'), ['/user/registration/resend']) ?> 而不是送我去 http://localhost/webs/parlay/web/index.php/user/registration/resend 这是我的urlManager配置 'urlManager' =>

我安装了yii2用户。在登录视图中,表单底部有几个链接

<?= Html::a(Yii::t('user', 'Didn\'t receive confirmation message?'), ['/user/registration/resend']) ?>
而不是送我去

http://localhost/webs/parlay/web/index.php/user/registration/resend
这是我的urlManager配置

'urlManager' => [
        'class' => 'yii\web\UrlManager',
        // Disable index.php
        'showScriptName' => true,
        // Disable r= routes
        'enablePrettyUrl' => true,
        'rules' => array(
                '<controller:\w+>/<id:\d+>' => '<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
                '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
        ),
    ],
'urlManager'=>[
'class'=>'yii\web\UrlManager',
//禁用index.php
'showScriptName'=>true,
//禁用r=路由
“enablePrettyUrl”=>true,
'规则'=>数组(
“/”=>“/视图”,
'//' => '/',
'/' => '/',
),
],
检查,可能您有旧版本的
yii2用户
软件包

您可以尝试从
/user/registration/resend
中删除
/
,或编写自定义规则,如

'user/ressend'=>'user/registration/ressend'
检查,也许您有旧版本的
yii2 user
软件包

您可以尝试从
/user/registration/resend
中删除
/
,或编写自定义规则,如

“用户/重新发送”=>“用户/注册/重新发送”

已添加

<module:user>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>
/'=>'//
到url管理器。正在工作

已添加

<module:user>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>
/'=>'//

到url管理器。现在正在工作

我在你发送的该帮助的链接上找到了一些东西我在你发送的该帮助的链接上找到了一些东西
<module:user>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>