Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/12/2010, 16:23
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: Asignar html de una function Action a una variabe

Cita:
Iniciado por sciutomaxi Ver Mensaje
Crear un view helper no quiero porque si yo ya tengo un action que realiza el listado y todo el procesamiento
Sobre gustos..., entonces como te comente antes utiliza el action view helper(con el overhead correspondiente)

Código PHP:
Ver original
  1. ...
  2. public function fichaAction()
  3. {
  4.    $this->view->titulo  = 'xxx';
  5.    $this->view->nombre  = 'xxx';
  6.    $this->view->listado = $this->view->action('listado', 'empresa', null, array('id' => 5));// null o el modulo
  7. }
  8. public function listadoAction()
  9. {
  10.    $usurios = $Usuarios->listadodeUsuariostipo($this->_getParam('id'));
  11.    $this->view->lista = array('1','2');
  12. }
  13. ...