Thursday, July 29, 2010

Re: Where is the problem in my validations

yes, u have it....it is not "NonEmpty" but is "notEmpty" xD
--
LP,
Tilen Majerle http://majerle.eu


2010/7/29 CakeMan <narula.vivek@gmail.com>
Hi,

Is there any problem with this Validation array in my model :

var $validate=array
                                (
                                 'email'=> array
                                                                 (
                                                                       'rule'=>'NonEmpty',
                                                                       'message'=>'Please provide valid Email.'
                                                                       ),
                                  'password'=> array
                                                                  (
                                                                        'rule' =>'NonEmpty',
                                                                        'message'=>'Please provide Password.'
                                                                        )
                                       );



it is giving me error as below :-
Warning (2): preg_match() [function.preg-match]: Delimiter must not be
alphanumeric or backslash [CORE\cake\libs\model\model.php, line 2571]

I am using Cake1.3

Please help

Thanks

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

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

No comments: