Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/02/2013, 08:51
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: Menú desde array

No entiendo muy bien la pregunta ya que el código que muestras es parte del Bootstrap, de todas formas si lo que quieres es acceder al navigation desde otro _init puedes hacerlo o bien retornando el navigation en _initNavigation y luego acceder vía container o bien a través de view directamente.
Código PHP:
Ver original
  1. protected function _initNavigation()
  2. {
  3.     ...
  4.     return $navigation;
  5. }
  6.  
  7. protected function _initFoo()
  8. {
  9.     $navigation = $this->getContainer()->navigation;
  10.     ...
  11. }

or

Código PHP:
Ver original
  1. protected function _initFoo()
  2. {
  3.     $this->bootstrap('view');
  4.     $view = $this->getResource('view');
  5.     $navigation = $view->navigation();
  6. }

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)