![yii怎么跳转页面](https://img.php.cn/upload/article/000/000/041/5e4c9e1d93b17142.jpg)
【Control】部分:
Yii::app()->user->setFlash('commentSubmitted ','显示跳转后的信息');
$this->redirect('list.m'); //页面跳转,list.m是因为写重写了router
登录后复制
推荐教程:yii框架
【View】部分:
user->hasFlash('commentSubmitted ')): ?>
user->getFlash('commentSubmitted '); ?>
登录后复制
更多编程相关内容,请关注php中文网编程入门栏目!
以上是yii怎么跳转页面的详细内容。更多信息请关注PHP中文网其他相关文章!