title: change header values based on variable codeigniter
body: <p>I have the following in my header:</p>
  
  <pre><code>&lt;div id="wrapper" class="homepage itemlist com_k2 category"&gt;
    &lt;div id="rt-header"&gt;
      &lt;div class="rt-container"&gt;
        &lt;div class="rt-grid-3 rt-alpha"&gt;
          &lt;div class="rt-block"&gt;&lt;a href="#" id="rt-logo"&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="rt-grid-9 rt-omega"&gt;
          &lt;div class="rt-fusionmenu"&gt;
            &lt;div class="nopill"&gt;
              &lt;div class="rt-menubar"&gt;
                &lt;ul class="menutop level1 "&gt;
                  &lt;li class="parent  root f-main-parent firstItem f-mainparent-item"&gt; &lt;a class="daddy item bullet" href="www.domain.com"&gt; &lt;span&gt; الرئيسية &lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
  
                  &lt;li class="active root"&gt; &lt;a class="orphan item bullet" href="load_kitchen_list"&gt; &lt;span&gt; المطبخ &lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
                  &lt;li class="root"&gt; &lt;a class="orphan item bullet" href=""&gt; &lt;span style="font-size:medium;"&gt; الملف الشخصي &lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
                  &lt;li class="root"&gt; &lt;a class="orphan item bullet" href="main/contactus"&gt; &lt;span&gt; للإتصال بنا&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Now if you investigate the <li> elements, you will find that there is an active flag in one of them. This makes sure that the currently seen page is highlighted in navigation bar. I want to know how can I change this based on view loaded? this is how I load views:</p>
  
  <pre><code>$this-&gt;load-&gt;view('layout/header');
  $this-&gt;load-&gt;view('home');
  $this-&gt;load-&gt;view('layout/footer');
  </code></pre>
  
  <p>So in this case the main navigation tab should be active. </p>
  
  <p>Regards,</p>