title: codeigniter load a model which has a constructor with a parameter
body: <p>My model class:</p>
  
  <pre><code>&lt;?php class Permissions extends CI_Model {
  
      private $userID   = '';
      private $permissions = '';
  
      function __construct($userID)
      {
          // Call the Model constructor
          parent::__construct();
  
          $this-&gt;userID = $userID;
          ....
      }
      function __construct()
      {.....}
  ?&gt;
  </code></pre>
  
  <p>and I want to load this model with a parameter, apparently I could not do it.
  Without a parameter I can load parameterless constructor by this way:</p>
  
  <pre><code>$this-&gt;load-&gt;model('Permissions');
  </code></pre>
  
  <p>My first question: is loading a model with a parameter nonsense?
  Second one: if it is doable, how can I do that?
  Thanks in advance.</p>