diff options
| -rw-r--r-- | app/controller/dashboard.control.php | 1 | ||||
| -rw-r--r-- | app/model/common.mod.php | 11 | 
2 files changed, 12 insertions, 0 deletions
| diff --git a/app/controller/dashboard.control.php b/app/controller/dashboard.control.php index 4ee4b38..9a279ca 100644 --- a/app/controller/dashboard.control.php +++ b/app/controller/dashboard.control.php @@ -14,6 +14,7 @@ class Dashboard extends Controller      function handle($argv)      {          $mod = new DashboardModel(); +        $mod->common_handleFormSubmissions($_REQUEST['input']);          $this->action_default($mod);      } diff --git a/app/model/common.mod.php b/app/model/common.mod.php index a3e9258..9289c21 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -20,6 +20,17 @@ class CommonModel extends MasterModel      }      /* +     * Handle form submissions from common views +     */ +    function common_handleFormSubmissions($input) +    { +        switch ($input['action']) +        { +            case "common-setting-user": $this->saveSettingUser($input); break; +        } +    } + +    /*       * Save changes to user account settings       */      function saveSettingUser($input) | 
