ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
# setTemplateEngine 设置模板引擎 ```php /** * 设置模板引擎 */ public function setTemplateEngine() { $this->templateEngine = new Engine(); $this->templateEngine->addFolder('server', __DIR__ . '/Views'); $this->templateEngine->addFolder('app', __DIR__ . '/../app/Views'); $this->templateEngine->registerFunction('get_www', 'get_www'); } ```