01-14-2021, 09:57 AM
(01-14-2021, 07:16 AM)iRedds Wrote: When you call $this->load->model() or $this->load->library() then the created instance of the class is stored in the global context.It works! Fantastic. TY!
The controller and model have direct access to this store.
Your module most likely does not have the functionality to access the global context
try to do it in your module
PHP Code:$CI = & get_isntance();
$CI->load->model('MyModel')->library('session');
$this->MyModel = $CI->MyModel;
$this->session = $CI->session;
proof that an old dog can learn new tricks