Okay sorry. i was wrong. That is not working anymore...

But this is:
--------------------------
if ($this->ModelName->saveAll($this->data, array('validate' =>
'only'))) {....
--------------------------

comes from here: 
http://book.cakephp.org/view/1182/Validating-Data-from-the-Controller

you should find the method inside of the cake core and u'll find
things like that ;P



On Apr 2, 10:35 am, func0der <[email protected]> wrote:
> Yeah but it is much easier.
>
> Just use this:
> ------------------------
> if ($this->User->validates($this->data) && 
> $this->User->Profile->validates($this->data)) { ...
>
> ------------------------
>
> Done ^^
>
> On Apr 1, 11:37 am, netusco <[email protected]> wrote:
>
> > Hey great euromark!
>
> > that was exactly what I needed, I didn't know php was saving time by just
> > executing one of the statements if it was failling or maybe I knew it and it
> > didn't ring the bell this time...
>
> > so helpfull to have blogs like yours dedicated to fload the web of good
> > examples really well explained and helpful at all times
>
> > big thanks!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to