I tried the default Yii application that is created with the console app.
I change the model attributeLabel to something like this:
/**
* Declares attribute labels.
* If not declared here, an attribute would have a label
* the same as its name with the first letter in upper case.
*/
public function attributeLabels()
{
return array(
'verifyCode'=>'Código de verificación',
);
}
public function rules()
{
return array(
array('username, password', 'required',"message"=>'Debe ingresar el {attribute}' ),
array('verifyCode', 'captcha', 'allowEmpty'=>!extension_loaded('gd'), "message"=>'{attribute} inválido'),
array('password', 'authenticate'),
);
}
In the label for the captcha, the label is código de validación , but in the validation text attribute name is: código de validación....
I think, IMHO, that there must be just one and defined action to use these codes.
What do you think?
Greetings from Argentina
Sebas

Help











