From c93ae572abf32262137cce69f1c020e9a5b46d9f Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 10 Mar 2016 20:35:32 -0500 Subject: Add function CommonModel::common_handleFormSubmissions() This helper func to all implementing MVC controllers is used to check for submission of any web-form defined within a common MVC view file. If detected, the appropriate handler function is called. --- app/model/common.mod.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/model') 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 @@ -19,6 +19,17 @@ class CommonModel extends MasterModel return "glyphicon glyphicon-user"; } + /* + * 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 */ -- cgit v1.2.3