yii2.0 url 跳转

//转发

$this->render('page1',['id'=>3,'mark'=>2]);    //显示page1页面 并传递 id mark 2个参数

//重定向

$this->redirect(['/home/index']);         //重定向到首页

原文地址:https://www.cnblogs.com/sheapchen/p/3939742.html