[eluser]darkhouse[/eluser]
That would require changing the loader library I believe, as it's the class that would say $this->m_model = new M_model();
But instead of loading it in the constructor, why can't you just setup an init method, like this:
Code:
class M_model extends Model {
private $user_id = NULL;
public function __construct() {
parent::Model ();
//do something hereā¦
}
public function init($user_id = NULL){
if($user_id !== NULL) $this->user_id = $user_id;
}
}