extension development bug
Posted: Wed Jul 10, 2019 3:04 am
I have developed an extension for opencart and I have added an event using 'addEvent' method. The event is triggering properly but the issue is that upon uninstalling the extension I am getting some fatal error . this is the error I am getting "Fatal error: Uncaught Error: Call to a member function deleteEventByCode() on null"
My uninstall function is
public function uninstall() {
$this->load->model('setting/event');
$this->model_settings_event->deleteEventByCode('EVENTCODE');
}
Any help will be much appreciated
My uninstall function is
public function uninstall() {
$this->load->model('setting/event');
$this->model_settings_event->deleteEventByCode('EVENTCODE');
}
Any help will be much appreciated