Hi Friends My scenario is : I have a single controller file, lets keep its name as conditions_controller.php. This controller file saves the details that are submitted from a form. But the form details needs to be saved in 3 different table. The thing here is I am saving it in 3 different tables. But when it comes to validation it becomes a problem for me.
Lets keep in the form i have 6 fields. The validation of first 2 fields is done in condition.php (primary model) The validation of second 2 fields is done in condition_two.php (different model file becoz it is for a diff. table) The validation of third 2 fields is done in condition_three.php ( different model file becoz it is for a diff. table) The validation for first 2 fields happen, msg. gets displayed if user does not fill in the form. But for the other two tables, the validation messages do not get displayed. Though the fields are set as mandatory, even when user submits a form without entering those fields the form is getting submitted. Now I want to display the validation msgs. from the other 2 model files too... How to achieve this? I read something abt $uses array... but I don't understand as to how to put it to my use? Please help me in solving this problem. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
