echo CHtml::activeTextField($model, 'username');
echo CHtml::activeTextField($model, 'email', array('class' => 'form-control', 'placeholder' => 'Enter your email'));
echo CHtml::activeTextField($model, 'password', array('template' => '{input}{error}', 'inputOptions' => array('class' => 'form-control')));
This will create a text input field for the 'password' attribute in the $model object, with a custom template that includes a span for displaying error messages, and an additional 'class' attribute set to 'form-control'.
Overall, CHtml::activeTextField is a useful method for quickly creating text input fields that are linked to model attributes in the Yii framework.