title: How to assign class="active" to menu in Smarty
body: <p>I want that when i click on any link the link clicked gets the class="active" , </p>
  
  <pre><code>&lt;div style="width: 180px;"&gt;     
      &lt;ul class="nav nav-list well"&gt;
        &lt;li class="active"&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Clientes&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Clientes Potenciales&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Suplidores&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Partners&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Contactos&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried doing it like this:</p>
  
  <pre><code>        &lt;li class="{if {$smarty.server.REQUEST_URI} == 'clientes'}active{/if}"&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Clientes&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{if {$smarty.server.REQUEST_URI} == 'clientes2'}active{/if}"&gt;&lt;a href="#"&gt;&lt;i class="icon-user"&gt;&lt;/i&gt; Clientes2&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>But no luck, its not working, can anyone help me out ? im trying to do this with Smarty</p>