Anyone have a solution for the Back button problem here? I don't think
it's right for the state to entirely be based on the session
information because the user can get to the recap screen, click the
browser back button to the beginning of the wizard, resubmit the first
page, and FormWizard will ignore that page and do the final action of
the wizard because it thinks the user is still on the recap page.
Unless I don't understand something, this isn't a complete solution.

On May 5, 7:05 am, CraZyLeGs <[EMAIL PROTECTED]> wrote:
> It's a bug in the component:
> initWizard has default prefix set to _Wiz
> function initWizard(& $ways, $prefix = "_Wiz")
> While clearWizard ( and the methods it calls ) has _Wizard.
> function clearWizard($prefix = "_Wizard")
> function clearStep($prefix = "_Wizard")
> function clearData($prefix = "_Wizard")
>
> Change one of them.
>
> On May 4, 1:41 pm, halebs <[EMAIL PROTECTED]> wrote:
>
> > Anyone using theFormWizardcomponent every have trouble with the
> > wizard session vars NOT being cleared in the last step? I am doing a
> > pr($SESSION) on pages after the form submission and I still see the
> > _Wizard array set. I am clearing the related session vars manually by
> > using $this->Session->delete(_WizData); in the last step, but not sure
> > if that is necessary or a good practice.
>
> >         function recap()
> >         {
> >                 // Save data to database
> >                 if 
> > ($this->SurveyPtsd->save($this->FormWizard->getWizardVars()))
> >         {
> >                         $this->Session->delete(_WizData);
> >                         $this->flash('Thank you for completing the 
> > survey',"/surveys/");
> >             exit();
> >         }
> >                 else
> >                 {
> >                         return false;
> >                 }
> >         }
>
> > Any assistance would be much appreciated.
>
> > On Apr 21, 8:04 pm, Chris Lamb <[EMAIL PROTECTED]> wrote:
>
> > > keymaster wrote:
> > > > One has to first do a proper search for the solution.
>
> > > One does not simply search into Mordor.
>
> > > --
> > >  Chris Lamb, Leamington Spa, UK                          GPG: 0x634F9A20
>
> > >  signature.asc
> > > 1KDownload


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to