Thursday, December 29, 2011

$this->ModelName->invalidFields(); return duplicates

Hello there,

Why does $this->ModelName->invalidFields(); returns the following
array?
array('field1' => array('error1', 'error1'), 'field2' => 'error2',
'error2');

Is it designed to do this or I am making a mistake somewhere?
I am using cake 2.0.x

Any help on this is greatly appreciated.
Thank you.

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: