[eluser]John_Betong[/eluser]
[quote author="NateL" date="1256985210"][quote author="InsiteFX" date="1256984997"]
InsiteFX[/quote]
My CSS is set up and working properly.
Code:
$a = array
(
'home' => '/home',
'about' => '/about',
'portfolio' => '/portfolio',
'contact' => '/contact'
);
echo '>>>' .$this->uri->uri_string .'<<<';
foreach($a as $title => $url):
$toggle = strpos($this->uri->uri_string, $url) ? ' class="active"' : '';
echo '>>>' .$toggle .'<<<';
echo "<li $toggle>".anchor($url, $title)."</li>";
endforeach;
unset($toggle);
unset($a);
Try this code and see what is happening. I think that you do not have the uri helper loaded.