Difference between #3 and #4 of
Extending CActiveForm for some form display fixes and language tweaks

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::active
PasswordTextField($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:
[...]
5 0
6 followers
Viewed: 24 646 times
Version: 1.1
Category: Tips
Written by: Trejder
Last updated by: Trejder
Created on: Nov 4, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history