title: How to check if view file exist in codeigniter?
body: <p>I am working with codeigniter v3.</p>
  
  <p>In the controller file i want to check if view file exist or not.</p>
  
  <pre><code>$file = "login";
  
  $this-&gt;load-&gt;view($file, array(),true);
  </code></pre>
  
  <p>The code giving me error</p>
  
  <pre><code>An Error Was Encountered
  
  Unable to load the requested file: login.php
  </code></pre>