Zend_Form: Multipage form example

View: New views
2 Messages — Rating Filter:   Alert me  

Zend_Form: Multipage form example

by Steven-81 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've been following the multipage form using sub forms example in the
documentation and have hit upon a small problem. When attempting to
return to the page containing the initial form, after a successful
submit an exception is thrown from prepareSubForm() method in the form
object. I've identified this is because the session doesnt get
destroyed on successful form submit, however I'm uncertain how to go
about fixing it - particularly in the 'correct' way. If i destroy the
namespace using Zend_Session::namespaceUnset() I can no longer access
the details submitted through the form in the View - maybe I should be
accessing them from the successfully validated form object rather than
the session anyway (despite the example)?

I've noticed a few other errors in both the operation of the example
and the documentation itself, where would be the best place to record
these?

Tips appreciated, thanks.

Steve

Re: Zend_Form: Multipage form example

by Simon Mundy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Steven - the best place to put this feedback is on the proposal  
itself. Matthew's just moved it to 'under review' so now's a really  
good time to get commenting!

Cheers

> Hi all,
>
> I've been following the multipage form using sub forms example in the
> documentation and have hit upon a small problem. When attempting to
> return to the page containing the initial form, after a successful
> submit an exception is thrown from prepareSubForm() method in the form
> object. I've identified this is because the session doesnt get
> destroyed on successful form submit, however I'm uncertain how to go
> about fixing it - particularly in the 'correct' way. If i destroy the
> namespace using Zend_Session::namespaceUnset() I can no longer access
> the details submitted through the form in the View - maybe I should be
> accessing them from the successfully validated form object rather than
> the session anyway (despite the example)?
>
> I've noticed a few other errors in both the operation of the example
> and the documentation itself, where would be the best place to record
> these?
>
> Tips appreciated, thanks.
>
> Steve

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124
http://www.peptolab.com