My model class:
<?php class Permissions extends CI_Model {
private $userID = '';
private $permissions = '';
function __construct($userID)
{
// Call the Model constructor
parent::__construct();
$this->userID = $userID;
....
}
function __construct()
{.....}
?>
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:
$this->load->model('Permissions');
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.