Hi Anand,
If you are trying to Save both user and user_phone u might be using saveAll.
So for validating just use
$this->User->saveAll('User',array('validation'=>'first'));
This will validate both your models.
On Mon, Dec 7, 2009 at 5:31 PM, anand angadi <[email protected]> wrote:
> Hi all,
>
> I have 2 model called User,user_phone...I have imported user_phone in User
> model...and I have done basic Add,Edit,Delete functionality...
>
> Now the problem is...
>
> In my view page I have input fields as username,password which belongs to
> user table and one more input field as number which belongs to user_phone...
>
> I am getting validation for username and password but not getting the
> validation for number as it is in different table and model...
>
> How can I solve this...?
>
> Cheers:
> Anand
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
--
Sijo Jose Chakramakkil
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 [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