Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/10/2012, 16:32
Avatar de lisandro Arg
lisandro Arg
 
Fecha de Ingreso: octubre-2003
Ubicación: Cordoba, Argentina
Mensajes: 945
Antigüedad: 20 años, 6 meses
Puntos: 24
Respuesta: Pasar parametros a un formulario ya instanciado

Y con respecto al flujo de trabajo podria ser así

Código PHP:
Ver original
  1. public function miAction(){
  2.    
  3.    $form = new Application_Form_miformulario();
  4.    
  5.    if ($this->_request->isPost()) {
  6.       if ($form->isValid($this->_getAllParams())) {
  7.           // Al final redireccionas
  8.       }
  9.       if ($_POST['parametro']) {
  10.          //Seteas en $form
  11.       }
  12.    }
  13.  
  14.    $this->view->form = $form
  15.    
  16. }