改进view类 调整模板引擎的配置参数定义和传入方式

This commit is contained in:
thinkphp
2016-04-26 17:00:55 +08:00
parent 6e79350a79
commit 7c74dd9591
5 changed files with 60 additions and 94 deletions

View File

@@ -35,7 +35,7 @@ class Controller
*/
public function __construct()
{
$this->view = View::instance(Config::get('view'));
$this->view = View::instance(Config::get('template'));
// 控制器初始化
if (method_exists($this, '_initialize')) {