
【control】部分:
Yii::app()->user->setFlash('commentSubmitted ','显示跳转后的信息');
$this->redirect('list.m'); //页面跳转,list.m是因为写重写了router推荐教程:yii框架
【View】部分:
user->hasFlash('commentSubmitted ')): ?>
user->getFlash('commentSubmitted '); ?>
更多编程相关内容,请关注php中文网编程入门栏目!










