Revision #4 has been created by Trejder on Nov 8, 2010, 9:40:01 PM with the memo:
Fixed code bug: activePasswordField --> activeTextField
« previous (#3) next (#5) »
Changes
Title
unchanged
Extending CActiveForm for some form display fixes and language tweaks
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
extending, CActiveForm, form, fixes, twaks
Content
changed
[...]
$transl.= Yii::t('classes', 'MyActiveForm_textFieldEx_end');
$textFieldAdd = ' <span class="text_field_add">'.$transl.'</span>';
}
return CHtml::activePasswordTextField($model, $attribute, $htmlOptions).$textFieldAdd;
}
```
This utilizes my own approach to Yii::t() where second parameter isn't English text (as in yii.php and zii.php files in original framework) but actually a placeholder, label or pattern to be exchanged. Therefore you have to create your own classes.php and put there something similar to:[...]