Skip to content

Commit

Permalink
添加获取模板数据
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed Apr 7, 2017
1 parent 62aa6f8 commit 492bac4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ViewSmarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,14 @@ public function getConfig()
{
return $this->config;
}

/**
* 获取传递给 view 的数据
*
* @return array
*/
public function getVars()
{
return $this->viewVars;
}
}

0 comments on commit 492bac4

Please sign in to comment.