cakephp selectbox/dropdown not showing error message
$verify_status = array('1'=>__('YES',true), '0'=>__('NO',true) );
//Don't use, It will not display error message below the dropdown
echo $form->select('User.verify_email', $verify_status, null, array('class'=>'text-fields','label'=>false, 'div'=>false,'empty'=>__('SELECT', true)));
//Now use, It will display error message below the dropdown
echo $form->input('User.verify_email', array('type'=>'select', 'options'=>$verify_status,'class'=>'text-fields','label'=>false, 'div'=>false,'empty'=>__('SELECT', true)));
Remember: CakePHP might have cached the previous page. Make sure your debug value is set to 1 or 2 in app/config/core.php to disable caching.
0 Comment:
Post a Comment