I wonder what is the best way to pass an instance of a Zend_Form around in a
controller. I used to post to the same page as the form was on, so
validation would be easy: I would instantiate a form, and depending on the
fact if a post was done, I could validate on the form and forward to another
page, or present the error messages.
But I want to do post-processing and validation in another action (the same
controller) and I don't have access to the instantiated form in this other
action. I've tried to set the form as a protected property of the
controller, but that doesn't work.
Any ideas or help would be greatly appreciated.
BTW, in the docs I could only find examples of same-page-posts.
GJ
--
View this message in context: http://www.nabble.com/Passing-Zend-Form-instances-around-in-a-controller-for-validation-tp19243691p19243691.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论