'APP_DEBUG' =>true,
'SHOW_PAGE_TRACE' =>true,
后台代码一部分:
namespace Admin\Controller;
class UserController extends Controller {
public function update(){
if(IS_POST){
cookie('msg','hello world',3);
$this->redirect("User/select");
}else{
$this->display();
}
}
}
问题现象描述:
当打开用户修改页面(User/update)时,会在User/update页面显示cookie信息
hello world ,可我还没有提交 POST 信息.....,请教,这是什么问题??
最佳答案