Zend Framework · February 13, 2012 0

Adding asterisk * after label in zend framework

You can add * before or after the label using requiredPrefix and requiredSuffix respectively

$element->getDecorator('label')->setOption('requiredSuffix', '*');

or

$element->setDecorators(array(
    'requiredPrefix'  => ' * ',
))