diff options
author | M <m@lfurio.us> | 2015-12-06 02:16:46 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-12-06 02:16:46 -0500 |
commit | 94b39ff32f6cc9566de651f35994d877634d7317 (patch) | |
tree | 529413a012e1507d8918e754ed11114e627eb8db /app/controller/sysconf.control.php | |
parent | 9f9d2a9d313122e9cf365e3baf4a8889b611ae28 (diff) | |
download | scrott-94b39ff32f6cc9566de651f35994d877634d7317.tar.gz scrott-94b39ff32f6cc9566de651f35994d877634d7317.zip |
* Implemented the "save" action for MVC sysconf
Diffstat (limited to '')
-rw-r--r-- | app/controller/sysconf.control.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/app/controller/sysconf.control.php b/app/controller/sysconf.control.php index f96c97e..a7db1e8 100644 --- a/app/controller/sysconf.control.php +++ b/app/controller/sysconf.control.php @@ -14,7 +14,17 @@ class Sysconf extends Controller function handle($argv) { $mod = new SysconfModel(); - $this->action_default($mod); + + switch ($_REQUEST['input']['action']) + { + case "save": + $this->action_save($mod); + break; + + default: + $this->action_default($mod); + break; + } } function action_default($mod) @@ -22,6 +32,12 @@ class Sysconf extends Controller $mod->deflt(); include "view/sysconf/default.view.php"; } + + function action_save($mod) + { + $mod->save($_REQUEST['input']); + $this->action_default($mod); + } } ?> |