You can add * before or after the label using requiredPrefix and requiredSuffix respectively
$element->getDecorator('label')->setOption('requiredSuffix', '*');
or
$element->setDecorators(array( 'requiredPrefix' => ' * ', ))
Learn Linux, Nginx, Apache, MongoDB, MySQL, PHP, Javascript, CSS
You can add * before or after the label using requiredPrefix and requiredSuffix respectively
$element->getDecorator('label')->setOption('requiredSuffix', '*');
or
$element->setDecorators(array( 'requiredPrefix' => ' * ', ))
Recent Comments