Wizard Model howto?
Reported by Spiazzi | November 30th, 2012 @ 04:47 AM
Hi,
I follow documentation, but I must add
CakePlugin::load('Wizard'); on boostrap php, and I can't understand
now how to make the view.
If I made a Controller for the wizard and this don't hava a model I
get an error:
"Error: Table signups for model Signup was not found in datasource default."
<?php echo $this->Form->create('Signup', array('id' => 'SignupForm', 'url' => $this->here)); ?>
<h2>Step 1:</h2>
<?php
echo $this->Form->input('User.username', array('label'=>'Email:'));
?>
<div class="submit">
<?php echo $this->Form->submit('Continue', array('div' => false)); ?>
<?php echo $this->Form->submit('Cancel', array('name' => 'Cancel', 'div' => false)); ?>
</div>
<?php echo $this->Form->end(); ?>
How can I made the Model class of the wizard?
There ia a complete sample to be downloaded?
Thankyou
Comments and changes to this ticket
-
Spiazzi November 30th, 2012 @ 04:57 AM
Ok I found solution adding
var $uses = array('User', 'Member');
in the controller
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป