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 cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to