title: Codeigniter model not loading with no errors
body: <p>My Codeigniter model is not loading and i get no errors.
  When i try to use $this->load->model('All_sensor_data').  Nothing Happens. I have no idea what is going on. I have tried changing names of files, Class Names, etc.. </p>
  
  <p>BTW, that log message is never reached. I can remove the $this->load->model('all_sensor_data') and then the log message works.</p>
  
  <p>My Base Model: </p>
  
  <pre><code>&lt;?php
  //Filename: application/core/my_model.php
  class MY_Model extends CI_Model {
      const DB_TABLE = 'abstract';
      const DB_TABLE_PK = 'abstract';
  
      /**
       * Create record.
       */
      private function insert() {
          $this-&gt;db-&gt;insert($this::DB_TABLE, $this);
          $this-&gt;{$this::DB_TABLE_PK} = $this-&gt;db-&gt;insert_id();
      }
  
      /**
       * Update record.
       */
      private function update() {
          $this-&gt;db-&gt;update($this::DB_TABLE, $this, $this::DB_TABLE_PK);
      }
  
      /**
       * Populate from an array or standard class.
       * @param mixed $row
       */
      public function populate($row) {
          foreach ($row as $key =&gt; $value) {
              $this-&gt;$key = $value;
          }
      }
  
      /**
       * Load from the database.
       * @param int $id
       */
      public function load($id) {
          $query = $this-&gt;db-&gt;get_where($this::DB_TABLE, array(
                  $this::DB_TABLE_PK =&gt; $id,
              ));
          $this-&gt;populate($query-&gt;row());
      }
  
      /**
       * Delete the current record.
       */
      public function delete() {
          $this-&gt;db-&gt;delete($this::DB_TABLE, array(
                  $this::DB_TABLE_PK =&gt; $this-&gt;{$this::DB_TABLE_PK},
              ));
          unset($this-&gt;{$this::DB_TABLE_PK});
      }
  
      /**
       * Save the record.
       */
      public function save() {
          if (isset($this-&gt;{$this::DB_TABLE_PK})) {
              $this-&gt;update();
          }
          else {
              $this-&gt;insert();
          }
      }
  
      /**
       * Get an array of Models with an optional limit, offset.
       *
       * @param int $limit Optional.
       * @param int $offset Optional; if set, requires $limit.
       * @return array Models populated by database, keyed by PK.
       */
      public function get($limit = 0, $offset = 0) {
          if ($limit) {
              $query = $this-&gt;db-&gt;get($this::DB_TABLE, $limit, $offset);
          }
          else {
              $query = $this-&gt;db-&gt;get($this::DB_TABLE);
          }
          $ret_val = array();
          $class = get_class($this);
          foreach ($query-&gt;result() as $row) {
              $model = new $class;
              $model-&gt;populate($row);
              $ret_val[$row-&gt;{$this::DB_TABLE_PK}] = $model;
          }
          return $ret_val;
      }
  } 
  </code></pre>
  
  <p>My Model:</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  //filename: application/models/all_sensor_data.php
  class All_sensor_data extends MY_Model {
  
      const DB_TABLE = "all_sensor_data";
      const DB_TABLE_PK = 'id';
  
      /**
       * All_Sensor_Data primary key
       * @var int
       */
      public $id;
  
      /**
       * Sensor Name
       * @var string
       */
      public $name;
  
      /**
       * Defines the type of sensor. e.g. LIGHT, MOISTURE, TEMPERATURE
       * @var string
       */
      public $type;
  
      /**
       * Date the row was added
       * @var
       */
      public $modify_date;
  
      /**
       * Value read from the sensor
       * @var int
       */
      public $value;
  
      /**
       * Describes the section where the sensor is located.
       * @var
       */
      public $section;
  
  }
  </code></pre>
  
  <p>Here is my controller: </p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  /**
   * Created by PhpStorm.
   * User: James
   * Date: 6/24/14
   * Time: 9:25 PM
   */
  class Incoming extends CI_Controller
  {
      function __construct() {
          parent::__construct();
          $this-&gt;load-&gt;model('All_sensor_data');
      }
      public function index() {
         echo "Hello, Incoming Controller";
      }
  
      public function incomingSensorData($sensor, $value)
      {
          log_message('info', __CLASS__ . ' ' . __LINE__ . ' ' .  'Hello Incoming Data');
      }
  
  }
  </code></pre>
  
  <p>Log output: </p>
  
  <pre><code>DEBUG - 2014-07-07 22:59:14 --&gt; Hooks Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Utf8 Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; UTF-8 Support Enabled
  DEBUG - 2014-07-07 22:59:14 --&gt; URI Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Router Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Output Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Security Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Input Class Initialized
  DEBUG - 2014-07-07 22:59:14 --&gt; Global POST and COOKIE data sanitized
  DEBUG - 2014-07-07 22:59:14 --&gt; Language Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Config Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Hooks Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Utf8 Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; UTF-8 Support Enabled
  DEBUG - 2014-07-07 22:59:49 --&gt; URI Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Router Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Output Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Security Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Input Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Global POST and COOKIE data sanitized
  DEBUG - 2014-07-07 22:59:49 --&gt; Language Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Loader Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Helper loaded: url_helper
  DEBUG - 2014-07-07 22:59:49 --&gt; Database Driver Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; Controller Class Initialized
  DEBUG - 2014-07-07 22:59:49 --&gt; CI_Model Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Config Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Hooks Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Utf8 Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; UTF-8 Support Enabled
  DEBUG - 2014-07-07 23:00:50 --&gt; URI Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Router Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Output Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Security Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Input Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Global POST and COOKIE data sanitized
  DEBUG - 2014-07-07 23:00:50 --&gt; Language Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Loader Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Helper loaded: url_helper
  DEBUG - 2014-07-07 23:00:50 --&gt; Database Driver Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; Controller Class Initialized
  DEBUG - 2014-07-07 23:00:50 --&gt; CI_Model Class Initialized
  </code></pre>