fix Параметры для компонентов из get

This commit is contained in:
origami11@yandex.ru 2023-04-13 11:34:19 +03:00
parent 7c0a5ab310
commit 29a18f5410
2 changed files with 2 additions and 2 deletions

View file

@ -320,7 +320,7 @@ class Component
} }
$params = new Collection(); $params = new Collection();
$params->import($arguments); $params->import(array_merge($_GET, $arguments));
$component->parameter = $params; $component->parameter = $params;
$component->template = $params->get('template', false); $component->template = $params->get('template', false);

View file

@ -96,7 +96,7 @@ class Form extends View {
$el->hint = $init['hint']; $el->hint = $init['hint'];
} }
$this->field [$init['name']] = $el; $this->field[$init['name']] = $el;
return $el; return $el;
} }