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 the FormWizard component 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 cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---