Beispiel #1
0
 public function installStoreSample($theme)
 {
     if (is_file(dirname(__FILE__) . '/' . $theme . '.php')) {
         require dirname(__FILE__) . '/' . $theme . '.php';
         $dir = dirname(__FILE__) . '/' . $theme . '/';
         $configs = ModuleSample::getStoreConfigs();
         if (isset($configs)) {
             $this->load->model('setting/setting');
             foreach ($configs as $key => $value) {
                 $group = 'config';
                 $store_id = 0;
                 //	 $this->model_setting_setting->editSettingValue( 'config', $key, $value );
                 $this->db->query("UPDATE " . DB_PREFIX . "setting SET `value` = '" . $this->db->escape($value) . "' WHERE `group` = '" . $this->db->escape($group) . "' AND `key` = '" . $this->db->escape($key) . "' AND store_id = '" . (int) $store_id . "'");
             }
         }
     }
 }