即使刷新页面后我也无法保证数据的存在;
我的情况;
我有一个表单,点击提交后直接转到另一个动作,你必须在刷新页面后保留这些数据;我使用POST方法传递数据
即使在zend框架中刷新页面后,是否有办法保留帖子数据。
答案 0 :(得分:2)
//In bootstrap
Zend_Session::start();
//in post page
$request = new Zend_Session_Namespace('request');
$request->post = $_POST;
//some other xyz page visited after posting data
$request = new Zend_Session_Namespace('request');
$post = $request->post ; //noew $post is equal to wat were posted in previous request