As far as I know, you do not have to serialize arrays or objects if you pass them as a parameter to _forward().

The _forward() method does not create a new HTTP request, it just bounces the current request object around within the dispatching process.

sinkingfish wrote:
Hi,

I am looking to pass an object (zend_form to be exact) between 2 actions and
am wondering is there a best practice or even a facility in zend framework?
I'm considering 3 ways :
1. make the object a class variable and access using $this
2. Serialize the the object and pass it as an a parameter in the _forward()
method.
3. make it a global variable.

Just wondering did anybody have any thoughts on this.

Brian

Reply via email to