From 2894de5f24622dcf6a3e25ee2efd69f1a9840fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 18:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Gii/GiiController.php b/Gii/GiiController.php index 7206c05d..fcf37514 100644 --- a/Gii/GiiController.php +++ b/Gii/GiiController.php @@ -173,7 +173,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodAdd($fields, $className, $object, $path): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /** * @return string @@ -225,7 +225,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodUpdate($fields, $className, $object = NULL, $path = []): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /** @@ -260,7 +260,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodBatchDelete($fields, $className, $object = NULL, $path = []): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /** @@ -295,7 +295,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodDetail($fields, $className, $managerName, $path = []): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /** @@ -325,7 +325,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodDelete($fields, $className, $managerName, $path): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /** @@ -360,7 +360,7 @@ use {$model_namespace}\\{$managerName}; public function controllerMethodList($fields, $className, $managerName, $path = []): string { $_path = str_replace(CONTROLLER_PATH, '', $path['path']); - $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; + $_path = lcfirst(rtrim($_path, '/')) . '/' . lcfirst($className); return ' /**