Single model per aplication . |
You don't need the code you show. Any model loaded using $this->load->model(...) already creates a singleton.
You can use the Auto-loading Resources feature to make the model available all the time for the application. BTW, you do not need the call to parent::__construct(); in Basic_Model because CI_Model does not have a constructor to call. |
Messages In This Thread |
Single model per aplication . - by tony.a - 06-25-2020, 04:11 PM
RE: Single model per aplication . - by dave friend - 06-25-2020, 06:11 PM
|