Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/12/2010, 16:47
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: Problema con zend_navigation - layout - view helper

El addHelperPath debería ser algo así:

Código PHP:
Ver original
  1. protected function _initDoctype()
  2. {
  3.     $this->bootstrap('view');
  4.     $view = $this->getResource('view');
  5.     $view->doctype('XHTML1_TRANSITIONAL');
  6.     $view->addHelperPath('My/View/Helper', 'My_View_Helper');
  7. }

Tu viewhelper deberia estar en:

library\My\View\Helper\Login.php y la clase deberia llamarse My_View_Helper_Login y contener al menos un metodo con el mismo nombre del segmento final de la clase, camelCased.

Para invocarlo:

Código PHP:
Ver original
  1. <?php echo $this->login(); ?>

Salu2.