Beispiel #1
0
 function save_settings()
 {
     $settings_model = new Settings_model();
     $settings_service = new Settings_service();
     $slugs = $this->input->post('slug', TRUE);
     $res = 0;
     foreach ($slugs as $key => $slug) {
         $settings_model->set_slug($key);
         $settings_model->set_value($slug);
         $res = $settings_service->update_settings($settings_model);
     }
     echo $res;
 }