echo CHtml::activeLabelEx($model, 'username'); echo CHtml::activeTextField($model, 'username');
echo CHtml::activeLabelEx($model, 'email', array('label'=>'Your Email')); echo CHtml::activeTextField($model, 'email');In this example, we are using activeLabelEx() to create a label for a input field with the model attribute "email", but we are passing in an options array with a custom label of "Your Email". The function will then return something like this: `` Both examples use the CHtml package library in the Yii Framework.