From c641348c5c6f948b7e03ef56500bb603bfa3a97c Mon Sep 17 00:00:00 2001 From: dingguodong Date: Mon, 9 Aug 2021 17:24:21 +0800 Subject: [PATCH] * Refactor send404 function and set to uniformed format. --- framework/api/entry.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/api/entry.class.php b/framework/api/entry.class.php index bee5d7b349..16e0b26a9d 100644 --- a/framework/api/entry.class.php +++ b/framework/api/entry.class.php @@ -219,6 +219,17 @@ class baseEntry $this->send($code, $response); } + /** + * Send 404 response. + * + * @access public + * @return void + */ + public function send404() + { + $this->sendError(404, '404 Not found'); + } + /** * 加载禅道的控制器类 * Load controller of zentaopms