title: Load views - Error with codeigniter
body: <p>I'm a newbie with codigniter, I'm doing a menu, so I put all the links not in the same main file for not repeat all time. </p>
  
  <p>My code is: </p>
  
  <p>In the main.php</p>
  
  <pre><code>    &lt;?=$this-&gt;load-&gt;view('headers/menu');?&gt;
  </code></pre>
  
  <p>In the menu.php</p>
  
  <pre><code>    &lt;span&gt;&lt;a href="&lt;?=base_url()?&gt;main/agregar"&gt;Agregar&lt;/a&gt;&lt;/span&gt; 
      &lt;span&gt;&lt;a href="&lt;?=base_url()?&gt;main/modificar"&gt;Modificar&lt;/a&gt;&lt;/span&gt; 
      &lt;span&gt;&lt;a href="&lt;?=base_url()?&gt;main/eliminar"&gt;Eliminar&lt;/a&gt;&lt;/span&gt; 
      &lt;span&gt;&lt;a href="&lt;?=base_url()?&gt;main/buscar"&gt;Buscar&lt;/a&gt;&lt;/span&gt; 
  </code></pre>
  
  <p>So, the following error appears and I don't know why... 
  any ideas??? Thank you so much</p>
  
  <blockquote>
    <p>A PHP Error was encountered</p>
    
    <p>Severity: 4096</p>
    
    <p>Message: Object of class CI_Loader could not be converted to string</p>
    
    <p>Filename: views/main.php</p>
    
    <p>Line Number: 15</p>
    
    <p>Backtrace:</p>
    
    <p>File: C:\xampp\htdocs\everisgas\application\views\main.php Line: 15
    Function: _error_handler</p>
    
    <p>File: C:\xampp\htdocs\everisgas\application\controllers\main.php Line:
    9 Function: view</p>
    
    <p>File: C:\xampp\htdocs\everisgas\index.php Line: 292 Function:
    require_once</p>
  </blockquote>