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??
thanks