If you want to save your data before previous (so user wont lose typed
data):
function _beforeCancel() {
// if user click on "Cancel" button:
$this->Model->save($this->data);
}
function _beforePrevious() {
// if user click on "Back/Previous" button:
$this->Model->save($this->data);
}
And to execute anything after finish the wizard:
function _afterComplete() {
// executed after finish the wizard
$this->Model->save($this->data);
}
Just a hint. ˆˆ
--
Renato Freire
(31) 2514-3806 / 9968-1366
[email protected]
On Wed, Jun 15, 2011 at 10:28 AM, nomen <[email protected]> wrote:
> Ok, I found it!
> There is nothing special to do, simply write in view:
> echo $this->Form->submit('Previous', array('name' => 'Previous',
> 'div' => false));
>
>
> On 15 jun, 11:07, nomen <[email protected]> wrote:
> > Hi all:
> >
> > I´m using CakePHP Wizard Component fromhttps://
> github.com/jaredhoyt/cakephp-wizard
> > It works well but I don´t know how to set a back link in view and
> > I can´t find how to do it in the wikihttps://
> github.com/jaredhoyt/cakephp-wizard/wiki.
> > How do I do in the view? How do I do in the controller? how do I
> > retrieve the data entered by the user in the previous step?
> >
> > Thanks in advance.
>
> --
> 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
>
--
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