diff options
Updated the comments and documentation in some controllers
1 files changed, 4 insertions, 0 deletions
| -rw-r--r-- | src/controllers/BaseController.php | 4 |
diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php index f766398..412cf25 100644 --- a/src/controllers/BaseController.php +++ b/src/controllers/BaseController.php @@ -1,5 +1,9 @@ <?php class BaseController { + /** + * Calls the get, post, put or delete static methods, depending on the server request method ($_SERVER['REQUEST_METHOD']) + * **By default** all requests that are not POST, PUT or DELETE execute the GET request method + */ public static function invoke() { switch ($_SERVER['REQUEST_METHOD']) { case 'POST': |
