Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/05/2011, 16:04
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Agregar Div al zend form

Lo has puesto tal cual en el init y no te funciona ?


Código PHP:
Ver original
  1. //CustomForm
  2. public function init()
  3. {  
  4.     $this->addElement('text', 'name', array(
  5.         'label' => 'Name:',
  6.         'decorators' => array(
  7.             array('Label', array('class'  => 'fs16')),                                                          
  8.             array(array('LabelWrapper' => 'HtmlTag'), array('tag' => 'div')),
  9.             array(array('StartInputWrapper' => 'HtmlTag'), array('tag'=>'div', 'openOnly' => true, 'placement' => 'append')),
  10.             array('ViewHelper'),                
  11.             array(array('EndInputWrapper' =>'HtmlTag'), array('tag'=>'div', 'closeOnly' => true, 'placement'=>'append')),
  12.             array('Errors', array('class'=>'error-list'))                                                      
  13.         )                          
  14.     ));
  15. }
__________________
http://es.phptherightway.com/
thats us riders :)