View Single Post
  #1 (permalink)  
Old 06-08-2008, 12:28 PM
kidk kidk is offline
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default Zend_Layout : Access active controller

Hi

Is it possible to access the active controller from a Zend_Layout template ? Something like

Code:
$this->layout()->getActiveController()
Or maybe theres another solution for my problem. You see I have a sidebar with a custom menu for every page. So I have an array of links in the Controller class and somehow this has to go to the Zend_Layout classes. I'm trying to avoid having to trigger a function in every Controller.



( Hope this makes sense )
Reply With Quote