I am trying to load an model, and pass in a variable in the constructor but couldn't find a solution to achieve this. Would anyone have a solution to this issue? Below is my code. Thanks!
$this->load->model(["client/HiredFreelancers_Model"]);
Model File
class HiredFreelancers_Model extends CI_Model {
private $proj_id;
public function __construct($proj_id)
{
$this->proj_id = $proj_id;
}
}