Im trying to archive a settings form that will save variables into two different codes in the oc_setting table.
For example, in the template files, I got this:
<input type="text" name="config_variable" value="<?php echo $config_variable; ?>" />
<input type="text" name="theme_variable" value="<?php echo $theme_variable; ?>" />
When saving this form, I want the config_variable to be saved as:
$this->model_setting_setting->editSetting('config', $this->request->post);
And the theme_variable as:
$this->model_setting_setting->editSetting('theme', $this->request->post);
Is there any smart person having a solution for this?
Who is online
Users browsing this forum: No registered users and 32 guests