$this->config questions
Posted: Mon Dec 31, 2012 1:30 pm
1) Where is the data stored when I save settings? Is it in DB under a special table?
2) How do I unset previously set values?
2) How do I unset previously set values?
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
It's stored in the settings table. You have six columns:haosmark wrote:1) Where is the data stored when I save settings? Is it in DB under a special table?
Like so:2) How do I unset previously set values?
Code: Select all
// Load /admin/model/setting/setting.php
$this->load->model('setting/setting');
// Delete an entire setting group
// $store_id will default to '0' (default store) if unspecified
$this->model_setting_setting->deleteSetting($group, $store_id);
// Editing a setting will delete all previous group data before writing the new
// $store_id will default to '0' (default store) if unspecified
$this->model_setting_setting->editSetting($group, $data, $store_id);