title: How can I set class="active" to navigation menu in codeigniter?
body: <p>I just start up to be a web developer. Now I create a dynamic website for the first time. I don't know how to set <code>class="active"</code> to the navigation menu.
  Here is my menu code:</p>
  
  <pre><code>&lt;li&gt;
      &lt;a href="&lt;?php echo base_url(); ?&gt;patient/createpatient"&gt;&lt;i class="fa fa-users fa-lg"&gt;&lt;/i&gt; Create Patient &lt;/a&gt;
  &lt;/li&gt;
  &lt;?php } ?&gt;
      &lt;li&gt;
         &lt;a href="&lt;?php echo base_url(); ?&gt;patient/listpatient"&gt;&lt;i class="glyphicon glyphicon-list-alt fa-lg"&gt; &lt;/i&gt; List Patients &lt;/a&gt; 
      &lt;/li&gt;
  &lt;?php if( $usertype == "Admin"){?&gt;
      &lt;li&gt;
      &lt;a href="&lt;?php echo base_url(); ?&gt;user/"&gt;&lt;i class="fa fa-list fa-lg"&gt; &lt;/i&gt; List Users &lt;/a&gt; 
      &lt;/li&gt;`
  </code></pre>