title: How can I pass the boolean value to the variable from Controller to view in CI
body: <p>I need your help to pass a bool value of the variable in the view from the controller &amp; get the output in view if $a ==true then Output:1. And if $a==false, than output:2.
  For Eg:
  My view is like:</p>
  <pre><code>if(!$a) { 
    echo &quot;Hi&quot;;
  } else{
    echo &quot;Hello World&quot;;
  }
  </code></pre>
  <p>How can I pass the $a bool value from controller to view ??</p>