Hello again ;)
I have 2 models:

Order:
hasOne = "Customer"

Customer:
belongsTo = "Order"
var $validate = array(lot of rules)

I would like to create a form to provide data for Customer object then
send form to OrdersController and validate.

How to create proper form?

I have this:
$form->create("Order", array("action" => "send"));
$form->input("Order.Customer.title");
// more fileds
$form->end("Send")

It sends data to "send" action of OrdersController, but how to create
Customer object, validate and display errors on the form if occur?

Thanks for help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to