There is no output of an error message in my view but pr($this-
>Spindle->invalidFields()); placed in the controller shows that 2
fields are invalid!?

Array
(
    [company_id] => This field cannot be left blank
    [spinnr] => This field cannot be left blank
)

My model:

    var $validate = array(
        'company_id' => array(
            'rule' => array('numeric')
        ),
        'spinnr' => array(
                'rule' => array('custom',VALID_NOT_EMPTY)
        )
    );

My View:

<?=$form->select('Spindle/company_id',
$CompaniesList,null,array('class' => 'required'),'-');?>
<?=$form->text('Spindle/spinnr',array('class' => 'required'));?>

Any ideas whats wrong?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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