From 492bac46ee29b68210fa035eb24ddaba7103698a Mon Sep 17 00:00:00 2001 From: fengqi Date: Fri, 7 Apr 2017 23:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ViewSmarty.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } }