Well, I would do that, but I don't understand why I need to include it on the AJAX page, but not on the initial page. Do you have any ideas about that?
Aldemar Bernal-2 wrote: > > Eric, > > you must include Zend_Form_Decorator_FormElements class before unserialize > the object from the session. > > Aldemar > ----- Original Message ----- > From: "EricJ" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, June 11, 2008 9:42 AM > Subject: [fw-general] Trouble Persisting Zend Form in Session > > >> >> I'm having difficulty persisting an object subclassed from ZendForm in >> the >> $_SESSION. Specifically, I create the form, store it in the $_SESSION, >> and >> then I want to access it using AJAX calls. My object works just fine >> during >> the AJAX call (ie, I'm able call its functions) until I try to render it. >> Then it blows up and says: >> >> Fatal error: Zend_Form::render() [ function.Zend-Form-render >> function.Zend-Form-render ]: The script tried to execute a method or >> access >> a property of an incomplete object. Please ensure that the class >> definition >> "Zend_Form_Decorator_FormElements" of the object you are trying >> to >> operate on was loaded _before_ unserialize() gets called or provide a >> __autoload() function to load the class definition >> >> I believe I have included the exact same files on the AJAX page that I >> included on the initial page that created the object(where I don't >> receive >> the above error) and I start the session in the same spot as the initial >> page as well. >> >> How am I able to call some methods on the serialized object, but not >> others? >> How do I get the object to render? >> -- >> View this message in context: >> http://www.nabble.com/Trouble-Persisting-Zend-Form-in-Session-tp17779491p17779491.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > > -- View this message in context: http://www.nabble.com/Trouble-Persisting-Zend-Form-in-Session-tp17779491p17781681.html Sent from the Zend Framework mailing list archive at Nabble.com.
