FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How can I serialize zend_http_request object?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How can I serialize zend_http_request object? [message #173502] Sat, 16 April 2011 00:24
xhe is currently offline  xhe
Messages: 1
Registered: April 2011
Karma: 0
Junior Member
I am now meeting a problem. I need to save user's action and replay
these action later.
What I am planing is to serializa user's http_request object into
database and then later, user zend_front controller to dispatch this
request. It sounds feasible at least. This is what I did:

Step 1. Saving request object:
I used
$str = serializa($this->_request) in controller A and then save it
into database as string

Step 2.
later I use
$request = unserialize($retrievedString) to get this http request back
then
$frontController = Zend_Controller_Front::getInstance();
$dispatcher = $frontController->getDispatcher();
$response = new Zend_Controller_Response_Http();
$dispatcher->dispatch($request,$response);

to replay this request.

But I got error. it seemed the $request can not be successfully
restored back. The $request is not an zend_controller_request object
at all.

Can anyone tell me how to succesfully serialize
zend_controller_request_http object?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: uasort strange problem
Next Topic: How many PHP calls is too many for one webpage?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 16:19:02 GMT 2024

Total time taken to generate the page: 0.12454 seconds