I am looking to do something similar to the way CodeIgniter’s load object works. You can instantiate a class, and in this example, a model, by using:
$this->load->model('some_model', 'custom_name')
The model some_model is now accessible via $this->custom_name. Does this make use of __set() and __get() or is it something entirely different?
No, codeigniter does not use getters/setters. Assuming that
$thisis available in context:You’re done, you can also pass dynamic constructor params when instantiating.