lets supose i am on the product template, and i want to add a config setting (in the setting table). How can i do this??
If i was in a module i would use the following in order to add the setting in the setting table:
Code: Select all
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$this->model_setting_setting->editSetting($this->_name, $this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
$this->redirect($this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL'));
}
What should i use to add a single config setting outside a module??
Thank you
Thank you