title: Currently Using CodeIgniter Framework i have an Error
body: <blockquote>
    <p>A PHP Error was encountered</p>
    
    <p>Severity: Notice</p>
    
    <p>Message: Undefined property: Login::$U_Model</p>
    
    <p>Filename: controllers/Login.php</p>
    
    <p>Line Number: 24</p>
  </blockquote>
  
  <p>Backtrace:</p>
  
  <blockquote>
    <p>File: C:\xampp\htdocs\Cmsproject\application\controllers\Login.php</p>
    
    <p>Line: 24</p>
    
    <p>Function: _error_handler</p>
    
    <p>File: C:\xampp\htdocs\Cmsproject\index.php</p>
    
    <p>Line: 315</p>
    
    <p>Function: require_once</p>
    
    <p><strong>$data=$this->U_Model->loginf($loginf['username'], $loginf['password']);</strong></p>
    
    <p>An uncaught Exception was encountered</p>
    
    <p>Type: Error</p>
    
    <p>Message: Call to a member function loginf() on null</p>
    
    <p>Filename: C:\xampp\htdocs\Cmsproject\application\controllers\Login.php</p>
    
    <p>Line Number: 24</p>
  </blockquote>
  
  <p>Backtrace:</p>
  
  <blockquote>
    <p>File: C:\xampp\htdocs\Cmsproject\index.php</p>
    
    <p>Line: 315</p>
    
    <p>Function: require_once</p>
  </blockquote>
  
  <p>Model File Is Here: </p>
  
  <pre><code>&lt;?php
  class U_Model extends CI_Model
  {
      public function loginf($username,$pass){
          $this-&gt;db-&gt;select('*');
          $this-&gt;db-&gt;from('users');
          $this-&gt;db-&gt;where('username',$username);
          $this-&gt;db-&gt;where('password',$pass);
          if($query=$this-&gt;db-&gt;get()){
              return $query-&gt;row_array();
          }else{
              return false;
          }
      }
  }
  ?&gt;
  </code></pre>