0
我使用CHtml :: button与其他动作(无形式)上的“提交”,它显示页面,但是当我点击BACK,然后点击NEXT时,它显示文档已过期“document expired”with button submit on other action
<?php echo CHtml::button('title', array('submit' => array('/'.$_GET['id'].'/smthing/profile'))); //)?>
'文件Expired'表明您已经取得了'POST'请求,然后尝试浏览到同一文件再次使用浏览器的导航按钮(后退,前进)。您应该使用[POST/Redirect/GET](http://en.wikipedia.org/wiki/Post/Redirect/Get)模式来避免这种情况。 – DaveRandom 2012-07-30 09:42:17
@DaveRandom我想使用按钮像链接http://www.yiiframework.com/wiki/48/by-example-chtml/#hh1 – gormit 2012-07-30 09:55:35
你有'
';' – DaveRandom 2012-07-30 10:02:38