Implement config templates

This commit is contained in:
Eike Foken
2011-08-30 01:13:03 +02:00
parent 5aaef1fc62
commit 121b47718a
3 changed files with 16 additions and 7 deletions

View File

@@ -60,7 +60,11 @@ class Programs extends Admin_Controller {
}
if ($this->form_validation->run('programs/edit') === true) {
if ($this->program->update($this->input->post('name'), $id)) {
$data = array(
'name' => $this->input->post('name'),
'config_template' => $_POST['config_template'],
);
if ($this->program->update($data, $id)) {
$this->messages->add(sprintf(_("The program '%s' has been updated successfully"), $this->input->post('name')), 'success');
redirect('admin/programs', 303);
}