Ver Mensaje Individual
  #22 (permalink)  
Antiguo 07/02/2013, 15:24
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: formas de usar decordador ViewScript

En el addElement cuando agregas tú elemento.

Código PHP:
Ver original
  1. $this->addElement('text', 'foo', array(
  2.             'required' => true,
  3.             'filters' => array('StringTrim'),
  4.             'placeholder' => 'Algo',
  5.             'autofocus' => 'autofocus',
  6.         ));