You could give each nav element an id and then just capture a little
Css style in the view with help from the cature helper methods, the Id
would be set to the current nav item from the Controller of the
current page:
In controller:
$this->view->navactive = 'idofnavlink'
In view:
#$this->navactive {
...
}
You would also need to use capture start and cature end methods of
helper obviously.
HTH.
On Nov 17, 2008, at 15:12, Ace Paul <[EMAIL PROTECTED]> wrote:
Is there a way that I can set a tab to have a class such as active
from the
controller?
So that the active tab would show as a different style?
I know that this can be done with javascript, but I would like to
know if it
can be done within Zend framework for ease of use.
thanks for any help
--
View this message in context:
http://www.nabble.com/setting-style-class-of-an-element-in-navigation-tp20541245p20541245.html
Sent from the Zend Framework mailing list archive at Nabble.com.