From 9cc81a67ff4920d3af39effea535119e649cd6e5 Mon Sep 17 00:00:00 2001 From: lukiqs Date: Tue, 12 Sep 2023 13:15:05 +0200 Subject: [PATCH] Add phtml reneder dynamic properties fix (#319) --- src/Ouzo/Core/View/PhtmlRenderer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ouzo/Core/View/PhtmlRenderer.php b/src/Ouzo/Core/View/PhtmlRenderer.php index 4e3cbc89..73fa0d8c 100644 --- a/src/Ouzo/Core/View/PhtmlRenderer.php +++ b/src/Ouzo/Core/View/PhtmlRenderer.php @@ -63,6 +63,11 @@ public function __set(string $name, $value): void $this->attributes[$name] = $value; } + public function __isset(string $name): bool + { + return isset($this->attributes[$name]); + } + public function getViewPath(): string { return $this->viewPath;