Tuesday, February 23, 2010

Re: Data is not saved

As John advises, conform to Cake's naming conventions and the problem
should sort itself out.

http://book.cakephp.org/view/22/CakePHP-Conventions

If you were confirming your form should be:

echo $form->create("Dealer");
echo $form->input("Dealer.name");
echo $form->input("Dealer.address");
echo $form->input("Dealer.phone");
echo $form->end("submit");

Which will create the $this->data array in the controller that the
model needs to be able to save correctly.

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: