diff --git a/src/View/Helper/ValueGetterHelper.php b/src/View/Helper/ValueGetterHelper.php new file mode 100644 index 0000000..d64bb2f --- /dev/null +++ b/src/View/Helper/ValueGetterHelper.php @@ -0,0 +1,24 @@ +eval($target, $args); + } else { + $value = h($target); + } + return $value; + } + + private function eval($fun, $args=[]) + { + return $fun($args); + } +} \ No newline at end of file