From 17086f966cea29ccaece5dce2d23d06122673011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 17 Apr 2023 19:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GiiController.php b/GiiController.php index 05bcf7a..fbab521 100644 --- a/GiiController.php +++ b/GiiController.php @@ -589,6 +589,7 @@ use Kiri\Router\Annotate\AutoController; $this->rules[$val['Field']] = $_field; } + $namespace = str_replace('Controller', 'Form', $path['namespace']); $path = str_replace('Controller', 'Form', $path['path']); if (!is_dir($_SERVER['PWD'] . '/app/Form/')) { mkdir($_SERVER['PWD'] . '/app/Form/'); @@ -601,7 +602,7 @@ use Kiri\Router\Annotate\AutoController; } file_put_contents($path . '/' . $formClass . 'Form.php', '