小技巧,设定$this-error() $this-sucsess 跳转时间
2011-05-24 15:03 卫佳 阅读(512) 评论(0) 编辑 收藏 举报默认跳转时间为3秒,有时候提示文字长点还没看清就跳走了,很烦人,看了下view model wedding jewelry sets才知道怎么定义
$Tpl['waitSecond']=30; //跳转时间(秒)
$Tpl['jumpUrl']=__APP__.'/Index'; //跳转url地址
$this->assign($Tpl); //批量赋值
$this->success("登录成功");
活着在Action中直接
$this->assign("waitSecond",3);