![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/08/2008, 14:29
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 1
Antigüedad: 16 años, 5 meses Puntos: 0 | |
Respuesta: Cambiar el msg. de error de validación con QuickForm HOla
Yo tuve que cambiar un mensaje y usé este código:
Básicamente heredé de la clase original y le cambié el atributo $_requiredNote por uno en español. Después el constructor de mi clase llama al constructor de la clase original
Espero que te sirva.
SAludos
<?php
class HTML_QuickForm_es extends HTML_QuickForm {
var $_requiredNote = '<span style="font-size:80%; color:#ff0000;">*</span><span style="font-size:80%;"> denota campos obligatorios</span>';
function HTML_QuickForm_es($formName='', $method='post', $action='', $target='', $attributes=null, $trackSubmit = false)
{
parent::HTML_QuickForm($formName, $method, $action, $target, $attributes, $trackSubmit);
}
}
?> |