Monday, October 27, 2008

Re: Wizard component: problem with proceding to next step...

I guess you are referring to the Wizard component by jaredhoyt
available in the bakery?

I have used it a little and as far as I know you should let the
component decide when to advance to the next step. You only ask the
form to post the current url:
'url' => $this->here

The component will only advance you to the next step after
processStep() has returned true. If you don't like the data from the
step and return false then the component will render the current step
again.

/Martin

On Oct 27, 7:14 am, xelios <mohammadmoh...@gmail.com> wrote:
> My steps are as follows:
>
> $this->Wizard->steps = array('account','shipping','step2');
>
> On clicking the "Next" button, it throws following error:
>
> Warning (512): Step validation: shipping is not a valid step. [APP
> \controllers\components\wizard.php, line 151]
>
> Form tag in account.ctp is as follows:
>
> <?php echo $form->create('null',array('id'=>'accountStep','url'=>'/
> wizards/wizard/shipping'));?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: