http://book.cakephp.org/view/1182/Validating-Data-from-the-Controller
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/3/5 Layek <sandipla...@gmail.com>

> I have done all the validation in model. I have use
> var $validate = array(
>        'ContactName' => array('length' => array('rule' => array('between',
> 3, 10),'message' => 'First Name cannot be blank or less than 3
> characters.')),
>        'ContactEmail' => array('email' => array('rule' => 'email','message'
> => 'Please supply a valid email address.')),
>        'ContactPassword'=>array('ContactPassword'=>array('rule' =>
> 'notEmpty','message'=>'Password cannot be blank.')),
>        'ContactMsg' => array('ContactMsg' => array('rule' =>
> 'notEmpty','message' => 'Comments cannot be blank.'))
>        );
>
> But I need to do it in controller. Please help me to do so.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to