I learned a lot about Cake 1.2 from studying the baked files.
There's also a look at forms over at:
http://cake.insertdesignhere.com/posts/view/15
Hope this helps,
Zoltan
www.yyztech.ca
On Mar 6, 10:00 am, "LMX" <[EMAIL PROTECTED]> wrote:
> hello, all!
> I'm migrating from 1.1 to 1.2, and receive such Cake messages when
> trying to validate data in controller old way:
>
> if ($this->Model->validates($this->data)) {
> ...}
>
> else {
> $this->validateErrors($this->Model);
>
> }
>
> (Model::validates) Parameter usage is deprecated, set the $data
> property instead
> Warning: in E:\works\cake12\cake\libs\model\model.php on line 1627
> (Model::invalidFields) Parameter usage is deprecated, set the $data
> property instead
> Warning: in E:\works\cake12\cake\libs\model\model.php on line 1645
>
> changed model in the new way:
>
> var $validate = array(
> 'phone' => array('numeric'),
> );
>
> but still get those errors
>
> how to validate data in 1.2-style?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---