/ Published in: PHP
test create new snippet
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<ul> <li class="<?=($this->uri->segment(1)==='alfa')?'active':''?>"><a href="alfa/index" title="Alfa">Alfa</a></li> <li class="<?=($this->uri->segment(1)==='beta')?'active':''?>"><a href="beta/index" title="Beta">Beta</a></li> </ul>