메소드 |
설명 |
|
_initialize ( ) |
初始化 |
|
assign ( mixed $name, mixed $value = '' ) : void |
模板变量赋值 |
|
beforeAction ( string $method, array $options = [] ) |
前置操作 |
|
display ( string $content = '', array $vars = [], array $replace = [], array $config = [] ) : mixed |
渲染内容输出 |
|
engine ( array | string $engine ) : void |
初始化模板引擎 |
|
fetch ( string $template = '', array $vars = [], array $replace = [], array $config = [] ) : mixed |
加载模板输出 |
|
validate ( array $data, string | array $validate, array $message = [], boolean $batch = false, mixed $callback = null ) : array | string | true |
验证数据 |
|
validateFailException ( boolean $fail = true ) |
设置验证失败后是否抛出异常 |
|