【发布时间】:2016-04-14 10:02:20
【问题描述】:
我正在尝试在超链接中为呼叫控制器操作提供 url,但是当我将 url 提供给超链接时,它会出现 404 错误。
<div class="panel-footer ">
Forget Password!<?= Html::a('Forget password ', ['user%2Fforgot'])?>
</div>
当使用这个超链接时,它不会像这样显示:http://localhost/basic/web/index.php?r=user%2Fforgot。 但显示这样的网址。:http://localhost/basic/web/index.php?r=home%2Fuser%2Fforgot。 不明白网址中的主页如何显示。
【问题讨论】: