Please apply this code for your problem slove.

var $validate = array(
    'name' => array(
         'rule' => VALID_NOT_EMPTY,
         'allowEmpty' =>false,
         'required' => true,
         'message'=>'Name field can not be empty.'
    )
);


On Wed, May 13, 2009 at 3:53 PM, cbhan <[email protected]> wrote:

>
> I am using cake_1.2.2.8120 ,notEmpty rule is not responding.
> // model code:
> var $validate = array(
>     'name' => array(
>          'rule' => 'notEmpty',
>          'required' => true,
>          'message'=>'Name field can not be empty.'
>     )
> );
>
> //view code
> <?php
> /**
>  * Class and Function List:
>  * Function list:
>  * Classes list:
>  */
> echo $form->create(array(
>        'enctype' => 'multipart/form-data'
> )); ?>
> <table>
>
> <tr>
> <td>Organization Name*</td>
> <td><?php echo $form->input('name', array(
>        'label' =>''
>    )); ?>
>  ...............................................and so no
> Please help!
>
> >
>


-- 
Regards,
Mohammad Arif Hossen
Junior Web Developer
United Group International(UGIBD)
Mobile: +88 01714355911

--~--~---------~--~----~------------~-------~--~----~
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