title: Codeigniter - if else inside view
body: <p>I am designing a theme layout for my web app.</p>
  
  <p>Let's say if I have two controllers,A and B. I want A view to display div A and B view will display div B.</p>
  
  <p>I know how to set this inside the controller by utilizing <code>if($this-&gt;router-&gt;fetch_class() == 'A')
  {
    //display div A
  }</code></p>
  
  <p>But, how to achieve this in view?</p>