views:

136

answers:

1

As stated in question title, is it possible in any way to highlight current link in menu? Menu is pure HTML, created manually.

Sergio E.

A: 

I know how to do this. Using:

Zend_Controller_Front::getInstance()->getRequest()->getControllerName();

How to make this variable accessible in every controller? :)

Sergio E.
It is. Recieved from static FrontController... it's available everywhere. Even easier - you can use (in controller) $this->_request->getControllerName()
Tomáš Fejfar