I using smarty for template renderer.
it is the views
<ul class="tabs">
{section name="id" loop=$this->dataArray.menu}
{if $this->currentAction == $this->dataArray.menu[id].action} // $this->currentAction is still null and need help to resolved
<li><a href="{$this->dataArray.menu[id].url}" class="current"><span>{$this->dataArray.menu[id].label}</span></a></li>
{else}
<li><a href="{$this->dataArray.menu[id].url}"><span>{$this->dataArray.menu[id].label}</span></a></li>
{/if}
{/section}
</ul>
I want to diff between two of <LI>, if the menu (<li>) is clicked then change class to "current", and it will marking the current menu.
the problem is. how to know the URI segment example :
http://myblog.com/index.php?r=site/about&id=5
how to get "site/about&id=5"
of if I using pathURL. eg:
http://myblog.com/site/about/id/5
how to get "site/about/id/5"
I need help. please…
thanks before and after…