title: CodeIgniter not loading model
body: <p>In my controller (controllers/user.php), I have:</p>
  
  <pre><code>class User extends CI_Controller 
  {
      public function index() 
      {       
           $this-&gt;load-&gt;model('user_model')or die("error");  
      }
  }
  </code></pre>
  
  <p>In my model (models/user_model.php), I have</p>
  
  <pre><code>class User_model extends CI_Model
  {
      public function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;database();
          $this-&gt;load-&gt;helper('common');
      }
  }
  </code></pre>
  
  <p>If I remove the </p>
  
  <pre><code>or die("error");
  </code></pre>
  
  <p>from the load statement, I get a 500 internal server error.</p>
  
  <p>I checked config.php and here's some info </p>
  
  <pre><code>$config['base_url'] = ''; 
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  </code></pre>
  
  <p>I have also edited the .htaccess file to remove the "index.php" from the URL to make it cleaner.</p>
  
  <pre><code>RewriteEngine On
  RewriteCond $1 !^(index.php|images|captcha|css|js|robots.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  </code></pre>