Tuesday, November 30, 2010

Re: Error : VALID_NOT_EMPTY

look at http://book.cakephp.org/view/1173/notEmpty for new validation
rules or http://book.cakephp.org/view/1151/Multiple-Rules-per-Field is
an other good point to start with validation.

On 29 Nov., 11:43, Hans Wiriya Tsai <hansw...@gmail.com> wrote:
> I hv CakePHP 1.3.6 installed on Ubuntu and learning to create simple
> blog. When I add validation to my model, I got this error:
>
> Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed
> 'VALID_NOT_EMPTY' [CORE/cake/libs/class_registry.php, line 141]
>
> Here's my model:
> <?php
> class Blog extends AppModel {
>         var $name = 'Blog';
>         var $validate = array(
>                         'title' => array(
>                                         'rule' => VALID_NOT_EMPTY,
>                                         'message' => 'Title of a blog cannot be empty'
>                         )
>         );}
>
> ?>
>
> Any idea what this error is all about? Thx for any help.

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 cake-php@googlegroups.com
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?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate