From e5242617e2c293d1938018567f34266208927b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 18:50:56 +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 1b2f7870..7206c05d 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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $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, '/')); + $_path = lcfirst(rtrim($_path, '/')) . '/' . $className; return ' /**