Hi!
I tried the default Yii application that is created with the console app.
I change the model attributeLabel to something like this:
<pre class='prettyprint'>
/**
* 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&oacute;digo de verificaci&oacute;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&aacute;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