title: How to include header file in main file in the View Folder using php Codeigniter?
body: <p>I have two folder in View Folder </p>
  
  <ol>
  <li><p>Layout Folder :- in this folder I have create two files header.php and footer.php</p></li>
  <li><p>Agent Folder :- In this folder iIhave Main file dashboard.php.</p></li>
  </ol>
  
  <p>I want to include header and footer file from layout folder to Dashboard.php.</p>
  
  <p>I am using this code:</p>
  
  <pre><code>&lt;?php include('../layout/header.php') ?&gt;
  </code></pre>