From 29a18f5410e3fcb6a4495726a440c4699b1ea92e Mon Sep 17 00:00:00 2001 From: "origami11@yandex.ru" Date: Thu, 13 Apr 2023 11:34:19 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B8=D0=B7?= =?UTF-8?q?=20get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/Component.php | 2 +- src/Form/Form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/Component.php b/src/Controller/Component.php index a7ce660..4e6f459 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -320,7 +320,7 @@ class Component } $params = new Collection(); - $params->import($arguments); + $params->import(array_merge($_GET, $arguments)); $component->parameter = $params; $component->template = $params->get('template', false); diff --git a/src/Form/Form.php b/src/Form/Form.php index 343f254..3bdd32e 100644 --- a/src/Form/Form.php +++ b/src/Form/Form.php @@ -96,7 +96,7 @@ class Form extends View { $el->hint = $init['hint']; } - $this->field [$init['name']] = $el; + $this->field[$init['name']] = $el; return $el; }