I need to see how to use validate in 1.2 also?  This page was not
useful.  How do I bake in order to get validate and invalidate to be
used?

On Mar 6, 8:52 am, "Zoltan" <[EMAIL PROTECTED]> wrote:
> 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,
> Zoltanwww.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 validatedatain controller old way:
>
> > if ($this->Model->validates($this->data)) {
> >         ...}
>
> > else {
> >         $this->validateErrors($this->Model);
>
> > }
>
> > (Model::validates)Parameterusageisdeprecated,setthe $data
> >propertyinstead
> > Warning: in E:\works\cake12\cake\libs\model\model.php on line 1627
> > (Model::invalidFields)Parameterusageisdeprecated,setthe $data
> >propertyinstead
> > 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 validatedatain 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to