Textfieldrow And Labels

I have a form that uses the following code to print a text box.

	<?php echo $form->textFieldRow($model,'f_name',array('class'=>'span5','maxlength'=>20)); ?>

by default it will use the actual field name in for the label in the form. How can I change the label to anything else?

I tried using stuff like this but I can’t seem to get anything to work

	<?php echo $form->textFieldRow($model,'f_name',array('labelHtmlOptions' => array('label' => 'some ohter label'),'class'=>'span5','maxlength'=>20)); ?>

what syntax should I use to change the label??


Which extension are you using to generate the form fields?


Assuming it’s YiiBooster, you should be able to do the following:

<?php echo $form->textFieldRow($model,'f_name',


    array('label'=>'Your label')); ?>

yes it it YiiBosster and your code worked! thanks a bunch