[eluser]NateL[/eluser]
I'm not passing it into the anchor. It's a part of my list item.
Code:
<li class="active"><a href="/about">about</a></li>
is what I'm trying to accomplish.
Quote:Your $toggle is being populated with the correct values but it is not being passed to the anchor parameter.
No - unfortunately it isn't.
Even if I did put $toggle in as a parameter for the anchor, it would still show "off".
If I remove this line of code:
Code:
echo '>>>' .$this->uri->uri_string .'<<<';
I get this:
>>>off<<<>>>off<<<>>>off<<<>>>off<<<
That's 4 menu items, and 4 instances of "off". It *should* be:
>>>off<<<>>>active<<<>>>off<<<>>>off<<<