[eluser]soupdragon[/eluser]
I am sure this has been asked before but i have failed to find the answer
i have a side navi which i include as a view all over the place.
in it obviously lots of this sort of thing
<?=anchor('start/help', 'Hilfe', 'onfocus="blur()"');?>
i have in the controllers a $data['page] so know where i am but
how can i easily highlight which navi point i am on ?
so far i have come up with this
<li><?=($page == 'help') ? '<b>' : '';?><?=anchor('start/help', 'Hilfe', 'onfocus="blur()"');?><?=($page == 'help') ? '</b>' : '';?></li>
but to be honest thats more code than if i just hard coded the link :-P