yiisoft/yii — pull request #2009 by viglu (2013-01-18 20:48:22+00:00)
Title: Update framework/web/helpers/CHtml.php

If $beforeRequiredLabel and $afterRequiredLabel are already set you can use beforeInnerRequiredLabel and/or afterInnerRequiredLabel trough htmlOptions.

With this patch you are able to generate html code like this.
Name *

by simple call like that.
$form->labelEx($model,'name', array('class'=>'control-label', 'beforeInnerRequiredLabel'=>' '));