Actually, I baked my application and form validation is working fine now. As far as $this is concerned. I would love to use it but it doesn't work : "call to a member of a non-object"...
Gaëtan On 11 jan, 05:03, Amit Badkas <[email protected]> wrote: > Hi, > > Your description of the validation problem is too less to give any > suggestion. Also about the usage of $form instead of $this->Form, you can > use $form in CakePHP-1.3.x but it will be removed in future versions and > that's why you have to use $this->Form. > > Amit Badkas > > PHP Applications for E-Biz:http://www.sanisoft.com > > On Mon, Jan 10, 2011 at 6:38 AM, Kh3ops <[email protected]> wrote: > > Hi, > > > I installed cake 1.3.6 on PHP 5.3.3. > > > I've just run through the "blog tutorial" and everything's working > > fine except "form validation". > > For an unknown reason, validating an empty form works and databases is > > filled with empty records. > > > Here is what I used in my model code : > > > var $validate = array( > > 'title' => 'notEmpty' > > ); > > > Any idea? > > > Compared to the tutorial, I also had to use $form() instead of $this- > > >Form() functions in templates files. Do you know why? > > > Thanks for your help, > > > Gaëtan > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<cake-php%[email protected]>For > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
