Yii2的view需要链接跳转时间:2023-03-08 19:00:32添加 use yii\helpers\Url; view中的连接 <?= Url::toRoute('post/index');?>//post为你的当前控制器名,index为view模版