Post by karlpers » Sun Apr 17, 2016 10:12 am

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?

Active Member

Posts

Joined
Tue Jun 09, 2009 10:35 pm

Post by Reptile » Sun Sep 17, 2017 9:28 pm

How did you solve this?

All my extensions: Click here or Click here


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 32 guests