title: Record view to create conditional statement in the template
body: <p>I have a method in controller that will load three different views based on if statement, like this</p>
  
  <pre><code>if(one) {
      $T-&gt;L-&gt;V('oneview')
  }  
  
  if(two) {
      $T-&gt;L-&gt;V('twoview')
  }  
  
  if(three) {
      $T-&gt;L-&gt;V('threeview')
  }  
  </code></pre>
  
  <p>In the all of the views, I have set one similar template. Say that this template named "menu-exporter" for these three different views.</p>
  
  <p>In this menu-exporter template, there is a button to do something. </p>
  
  <pre><code>   &lt;button&gt; A Link that will generate the button &lt;/button&gt;
  </code></pre>
  
  <p>What I want to achieve now is, How do I Record view to create conditional statement in the template, so that I can create a different link to this button in this template? </p>
  
  <p>Like this one:</p>
  
  <pre><code>  if($view == 'oneview') {
     &lt;button&gt; The link go to the school &lt;/button&gt;
    }
  
    if($view == 'twoview') {
     &lt;button&gt; The link go to the office  &lt;/button&gt;
    }
  
    if($view == 'threeview') {
     &lt;button&gt; The link go to the home&lt;/button&gt;
    }
  </code></pre>
  
  <p>Thanks in advance. </p>