So it would be somthing like this:
header.phtml:
*<?php $this->headStyle()->captureStart() ?>
<?php echo $this->navactive ?> {
background-color:#fef;
}
<?php $this->headStyle()->captureEnd() ?>*
<div id="navi">
<ul id="navtabs">
<li id="menuItem1"> Dashboard </li>
<li id="menuItem2"> /admin/business/ Businesses </li>
<li id="menuItem3"> Menu Item Two </li>
<li id="menuItem4"> Menu Item Three </li>
<li id="menuItem5"> Menu Item Four </li>
</ul>
<div class="clear"></div>
</div>
<div id="subnavi">
<ul id="subnav">
<li id="subItem1"> Business List </li>
<li id="subItem2"> Submenu Item </li>
<li id="subItem3"> Submenu Item </li>
<li id="subItem4"> Submenu Item </li>
<li id="subItem5"> Submenu Item </li>
<li id="subItem6"> Submenu Item </li>
</ul>
<div class="clear"></div>
</div>
// in controller and relevant acion:
// this is where you would set the active tabs
*$this->navActive = '#menuItem1,#subMenuItem1';*
This is just one way, and hopefully it will give you more ideas.
Thanks
2008/11/18 Ace Paul <[EMAIL PROTECTED]>
>
> Thanks for the responses.
> Still a bit stuck. I haven't used the capture helpers, so its very new to
> me. Still working on my first ZF app. It seems to be a quick learning
> curve,but there is so much to learn.
>
> I have this section in the header.phtml file, in the layouts directory. The
> current and sub-current classes tell which page we are on. So that the
> navigation is highlighted in the header area.
>
> <div id="navi">
> <ul id="navtabs">
> <li id="current"> Dashboard </li>
> <li> /admin/business/ Businesses </li>
> <li > Menu Item Two </li>
> <li> Menu Item Three </li>
> <li> Menu Item Four </li>
> </ul>
> <div class="clear"></div>
> </div>
>
> <div id="subnavi">
> <ul id="subnav">
> <li id="sub-current"> Business List </li>
> <li> Submenu Item </li>
> <li> Submenu Item </li>
> <li> Submenu Item </li>
> <li> Submenu Item </li>
> <li> Submenu Item </li>
> </ul>
> <div class="clear"></div>
> </div>
> --
> View this message in context:
> http://www.nabble.com/setting-style-class-of-an-element-in-navigation-tp20541245p20552588.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>
--
Thank You
Daniel Latter