Property | Type | Description | |
---|---|---|---|
$config | 模板引擎参数 |
Method | Description | |
---|---|---|
__construct ( $config = [] ) | ||
config ( string | array $name, mixed $value = null ) : void | 配置模板引擎 | |
display ( string $content, array $data = [] ) : void | 渲染模板内容 | |
exists ( string $template ) : boolean | 检测是否存在模板文件 | |
fetch ( string $template, array $data = [] ) : void | 渲染模板文件 |
Method | Description | |
---|---|---|
parseTemplate ( string $template ) : string | 自动定位模板文件 |