title: Why I am getting forbidden error during model call in controller
body: <p>My controller, if I run this, it works properly</p>
  
  <pre><code>class Front_controller extends CI_Controller{ 
     public function index(){ 
        $this-&gt;load-&gt;view('front/index'); 
     } 
  }
  </code></pre>
  
  <p>if I call model</p>
  
  <pre><code>class Front_controller extends CI_Controller{
  
     public function  index(){
        $data['list'] = $this-&gt;Mymodel-&gt;getdata(); 
        $this-&gt;load-&gt;view('front/index',$data); 
     } 
  }
  </code></pre>
  
  <p>it gives :</p>
  
  <blockquote>
    <p>403 forbidden error and 500 internal server error</p>
  </blockquote>