广告:宝塔Linux面板高效运维的服务器管理软件 点击【 https://www.bt.cn/p/uNLv1L 】立即购买
【Control】部分:
Yii::app()->user->setFlash('commentSubmitted ','显示跳转后的信息');$this->redirect('list.m'); //页面跳转,list.m是因为写重写了router登录后复制
推荐教程:yii框架
【View】部分:
<?php if(Yii::app()->user->hasFlash('commentSubmitted ')): ?> <div class="flash-success"> <?php echo Yii::app()->user->getFlash('commentSubmitted '); ?> </div><?php endif; ?>登录后复制
更多编程相关内容,请关注9543建站博客编程入门栏目!
以上就是yii怎么跳转页面的详细内容,更多请关注9543建站博客其它相关文章!
发表评论