yiisoft/yii — pull request #2012 by viglu (2013-01-19 11:05:01+00:00)
Title: Update framework/web/helpers/CHtml.php

Add some inner "prefix"/"suffix" html code around the label content, without modifying CHtml::$beforeRequiredLabel and CHtml::$afterRequiredLabel

Example source code of how to use
echo $form->labelEx($model,'email', array('class'=>'control-label', 'beforeInnerLabel'=>' '));
echo $form->labelEx($model,'subject', array('class'=>'control-label', 'beforeInnerLabel'=>' '));

It this case we are adding an image before the label content "Email"

beforeInnerLabel and afterInnerLabel can also be used if a label don't have the "require" tag.

See produced html code demo page http://shop.glasbuttek.lu/information/contact