<?php
class Mark extends AppModel{
    var $name = 'Mark';
     var $actsAs = array('Logable'=>array(
                        'userModel' => 'Login',
                        'userKey' => 'user_id',
                        'description_ids' => true

           ));

    var $validate = array(

                              'name' => array(
                                              'rule' =>
array('custom','/^[A-Z -.]{1,}$/i'),
                                              'required' => true,
                                              'message' => 'Please choose
qualifying exam'

                                           )
);
}
?>
This is My Model  An It's Working Fine
But , I want to change the color of message while it's displaying.
--------------------------------------------------------------------




On Wed, Aug 4, 2010 at 1:43 PM, xiaopang <[email protected]> wrote:

> Hello,
>
> If I want to validate the form input, let's see if it is a email and I
> don't need to store this input in to database, which means the
> $validate array can't do the validation.
>
> In this case, besides writing reg express, does cakephp provide any
> validation mechanism?
>
> 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]<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

Reply via email to