Ver Mensaje Individual
  #25 (permalink)  
Antiguo 21/06/2011, 13:21
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: Llamar un view helper desde el layout

Mira, ahí esta el problema, en _initNavigation, el primero _initViewHelpers no debería ir, porque es lo que tenes en el application.ini, así que comentalo/eliminalo,el problema es que el getView del resource layout no comprueba que exista el resource view y no te toma los datos seteados en este, sino que crea uno nuevo, deberias hacer el bootstrap del view en vez del layout, algo asi:

Código PHP:
Ver original
  1. ...
  2. protected function _initNavigation()
  3. {
  4.  
  5.     $this->bootstrap('view');
  6.     $view = $this->getResource('view');
  7.  
  8.     $config = new Zend_Config_Xml(
  9.                                 APPLICATION_PATH . '/configs/navigation.xml',
  10.                                 'nav');
  11.     $navigation = new Zend_Navigation($config);
  12.     $view->navigation($navigation);
  13.  
  14. }
  15. ...
__________________
http://es.phptherightway.com/
thats us riders :)