Yes, a very easy way would be how it is supposed to be:

1 Controller for 1 Wizard.
2 Controllers for 2 Wizards.

End of story :)

I think making the Wizard Component work for this case is more hassle
then just use seperate Controllers.

Regards
Thomas

Am Mittwoch, den 06.07.2011, 10:50 -0300 schrieb Renato de Freitas
Freire:
> Hello.
> I think it will give you many troubles.
> First, you will need a newinstance of the component, otherwise it will
> conflict with the first instance you are already using.
> Then you will be able to use like $this->Wizard1->steps and
> $this->Wizard2->steps, got it?
> But even that way it may not work, since the session variables will be
> the same, and will conflict.
> 
> Why do you need to use this component two diferent times in the same 
> controller?
> May be there is an easier way to do what you want.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Wednesday, July 6, 2011, Dominik Gajewski <[email protected]> 
> wrote:
> > Put all methods which do you want to reuse to AppController, this is
> > my suggestion.
> >
> > 2011/7/4 olga <[email protected]>:
> >> hi,
> >> i use the wizard component https://github.com/jaredhoyt/cakephp-wizard
> >> and it works fine.
> >> now i want to use it a second time on the website, in the same
> >> controller.
> >> is this possible an what i have to do?
> >> if i define $steps a second time, ist doesn'work.
> >> thanks and best regards
> >> olga
> >>
> >> --
> >> Our newest site for the community: CakePHP Video Tutorials 
> >> http://tv.cakephp.org
> >> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> >> others with their CakePHP related questions.
> >>
> >>
> >> To unsubscribe from this group, send email to
> >> [email protected] For more options, visit this group 
> >> at http://groups.google.com/group/cake-php
> >>
> >
> >
> >
> > --
> > Pozdrawiam
> > Dominik Gajewski
> >
> > --
> > Our newest site for the community: CakePHP Video Tutorials 
> > http://tv.cakephp.org
> > Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> > others with their CakePHP related questions.
> >
> >
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group at 
> > http://groups.google.com/group/cake-php
> >
> 
> -- 
> 
> --
> Renato Freire
> (31) 2514-3806 / 9968-1366
> [email protected]
> 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to