Required field are not marked as required

For some reason, all the required fields in the default contact form aren't marked with a '', but ig if try to submit the empty form, I'll get all required fields marked red. It's only the '' which is missing.

All my other forms work well. Any ideas?

Are you using CHtml::activeLabelEx() ?


Are you using CHtml::activeLabelEx() ?

yes, I do!

Do you use any localized attribute?


Do you use any localized attribute?

no :(

suppose you have

class ContactForm extends CFormModel


	public $name;


and you write:

<?php echo CHtml::activeLabelEx($contact,'name '); ?> // note the space


<?php echo CHtml::activeLabelEx($contact,'nombre'); ?>

you will not see the asterisk. This what i wanted to explain.

yes, that's exactly how I do have it.

why are the '*' not shown?

See http://www.yiiframew…eLabelEx-detail

…In particular, it calls CModel::isAttributeRequired …