Hi i want change the label’s form of user modules , i can change the field formatted as this:
<div class="row">
<?php echo $form->labelEx($model,'Ridigita la Password'); ?>
<?php echo $form->passwordField($model,'verifyPassword'); ?>
<?php echo $form->error($model,'verifyPassword'); ?>
</div>
I change labelex and thed label change…
In this part of code i have the label iserted dinamically:
<?php
$profileFields=Profile::getFields();
if ($profileFields) {
foreach($profileFields as $field) {
?>
<div class="row">
<?php echo $form->labelEx($profile,$field->varname); ?>
<?php
if ($widgetEdit = $field->widgetEdit($profile)) {
echo $widgetEdit;
} elseif ($field->range) {
echo $form->dropDownList($profile,$field->varname,Profile::range($field->range));
} elseif ($field->field_type=="TEXT") {
echo$form->textArea($profile,$field->varname,array('rows'=>6, 'cols'=>50));
} else {
echo $form->textField($profile,$field->varname,array('size'=>60,'maxlength'=>(($field->field_size)?$field->field_size:255)));
}
?>
How can can change this label
second question ot :
Where is instantiated the class profile