From ed99654d2e139a847a63e9295bf976d17462ee34 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 22 Oct 2016 00:29:30 -0400 Subject: Deprecate application code Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design. --- examples/app/controller/auth.control.php | 67 ++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 examples/app/controller/auth.control.php (limited to 'examples/app/controller/auth.control.php') diff --git a/examples/app/controller/auth.control.php b/examples/app/controller/auth.control.php new file mode 100644 index 0000000..5be1e4b --- /dev/null +++ b/examples/app/controller/auth.control.php @@ -0,0 +1,67 @@ +action_signup($mod); + break; + + case "login": + $this->action_login($mod); + break; + + default: + $this->action_default($mod); + break; + } + } + + function action_default($mod) + { + $mod->deflt(); + include "view/auth/default.view.php"; + } + + function action_signup($mod) + { + $mod->signup($_REQUEST['input']); + $this->action_default($mod); + } + + function action_login($mod) + { + $mod->login($_REQUEST['input']); + $this->action_default($mod); + } +} + +?> -- cgit v1.2.3