Response
└─View
public class View
extends Response
Method Summary | |
---|---|
protected mixed | output(mixed data) 处理数据 |
mixed | getVars(string name) 获取视图变量 |
$this | assign(mixed name, mixed value) 模板变量赋值 |
$this | replace(string|array content, string replace) 视图内容替换 |
Methods inherited from think\Response | |
---|---|
__construct, cacheControl, code, content, contentType, create, data, eTag, expires, getCode, getContent, getData, getHeader, header, lastModified, options, output, send |
protected mixed output(mixed data)
处理数据
public mixed getVars(string name)
获取视图变量
public $this assign(mixed name, mixed value)
模板变量赋值
public $this replace(string|array content, string replace)
视图内容替换