From 976b399f90fc5c0152f87e474e61e6065c0e7a5f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 16:25:24 +0300 Subject: Updated the comments and documentation in some controllers --- src/controllers/DashboardController.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/controllers/DashboardController.php') diff --git a/src/controllers/DashboardController.php b/src/controllers/DashboardController.php index 80717ca..59c1090 100644 --- a/src/controllers/DashboardController.php +++ b/src/controllers/DashboardController.php @@ -16,6 +16,9 @@ class DashboardController extends BaseController { } public static function post() { + // Forms can only send POST or GET requests. + // EditOfferController doesn't have it's own URI, so we can't send a request. + // We also can't just invoke it, because that means manually changing the server's request method. switch($_POST['_method']) { case 'get': EditOfferController::get(); -- cgit v1.3.1-23-gd82d