Why load the model twice?

28 views
Skip to first unread message

Pablo Gross

unread,
May 20, 2024, 8:35:32 AMMay 20
to Easy!Appointments - Support Group
Hello. Why do you repeat $this->CI->load->model('secretaries_model') twice?

"application/libraries/Notifications.php" 

 /**
     * Notifications constructor.
     */
    public function __construct()
    {
        $this->CI =& get_instance();

        $this->CI->load->model('providers_model');
        $this->CI->load->model('secretaries_model');
        $this->CI->load->model('secretaries_model');
        $this->CI->load->model('admins_model');
        $this->CI->load->model('appointments_model');
        $this->CI->load->model('settings_model');

        $this->CI->load->library('ics_file');
        $this->CI->load->library('timezones');

        $this->CI->config->load('email');
    }

Alex Tselegidis

unread,
May 27, 2024, 10:57:23 AMMay 27
to Easy!Appointments - Support Group
Hello! 

Thanks for mentioning this. 

This was a typo, fixed on develop


Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!



Reply all
Reply to author
Forward
0 new messages