diff --git a/src/ViewSmarty.php b/src/ViewSmarty.php index fd0e7ed..dd316c9 100644 --- a/src/ViewSmarty.php +++ b/src/ViewSmarty.php @@ -119,4 +119,14 @@ public function getConfig() { return $this->config; } + + /** + * 获取传递给 view 的数据 + * + * @return array + */ + public function getVars() + { + return $this->viewVars; + } }