hi,
As earlier said u are sending the form data to a
different page...
function thank_you()
{
> if( !empty($this->data) )
> {
> $this->User->create();
> if( $this->User->save($this->data) )
> {
> }
> else
> {
> $this->redirect(array('action' => 'index'),n
I don't think I was clear in that last message. I'm using a model name
that is not associated with the controller. For example my controller
is businesses but my model is users because I'm adding information
into my users database for marketing to them.
I was under the impression that it's the co
Well I have a model for the user table and I have a controller called
businesses and within businesses I have two actions (index and
thank_you). In my controller I am using the model Users doing:
var $uses = array('User');
But are you saying that I should be adding the form data to this page
and t
Just a guess but it looks like your sending the form data to a
different page...
Validation was intended to display on the same model in a circular
manner. i.e. empty user/add form is shown -> data submitted to user/
add action -> user/add validates data -> form is repeated if invalid
OR redirect