From 314fadca7f3e7cc879f0d8375763ce08b3ab3829 Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 10 Nov 2023 14:01:37 +0800 Subject: [PATCH] eee --- GiiController.php | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/GiiController.php b/GiiController.php index e9fe735..fab0a73 100644 --- a/GiiController.php +++ b/GiiController.php @@ -204,7 +204,7 @@ class {$controllerName}Controller extends Controller $_path = ltrim($_path, '/'); -// $this->getData($path, $className, $fields); + $this->getData($path, $className, $fields); return ' /** @@ -635,33 +635,10 @@ use Kiri\ToArray; /** * FormData */ -class ' . $formClass . 'Form implements ToArray, \JsonSerializable, \Stringable +class ' . $formClass . 'Form implements \Arrayable { ' . $class . ' - - /** - * @return bool|string - */ - public function jsonSerialize(): bool|string - { - // TODO: Implement jsonSerialize() method. - return json_encode($this->toArray(), JSON_UNESCAPED_UNICODE); - } - - - /** - * @return string - */ - public function __toString(): string - { - // TODO: Implement __toString() method. - $json = $this->jsonSerialize(); - if (!$json) { - return \'\'; - } - return $json; - } /**