Is there anyone that have a solution because this problem driven me crazzy
Get current controller from zend_layout
Moderator: General Moderators
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Get current controller from zend_layout
I would like to create a menu and highlight the current page (menu items) to be able to do that i have to get the current controller or action from Zend_Layout.
Is there anyone that have a solution because this problem driven me crazzy
Is there anyone that have a solution because this problem driven me crazzy
Re: Get current controller from zend_layout
$this->_request->_controller
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Re: Get current controller from zend_layout
In layout.phtml you don't have access to $this->_request, or at least in my case is null 
Re: Get current controller from zend_layout
so assign the variable to the view from the controller