Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/02/2011, 18:27
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Añadir otros elementos usando Zend_Form

También puedes usar un ViewScript para decorar la forma por completo, por ejemplo:
Código PHP:
Ver original
  1. $this->setElementDecorators(array(
  2.             'ViewHelper'
  3.         ));
  4.  
  5. $this->setDecorators(array(
  6.         'FormErrors',
  7.             array('ViewScript', array('viewScript' => 'form.phtml')),
  8.             'Form'
  9.         ));

Luego tu script form.phtml puedes poner algo así:
Código PHP:
Ver original
  1. <table>
  2.         <tr>
  3.                 <td>Nombre</td>
  4.                 <td><?php echo $this->element->login; ?></td>
  5.         </tr>
  6. </table>

Saludos.