mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
View类增加http方法,用于设置视图输出参数。
This commit is contained in:
@@ -102,6 +102,21 @@ class View {
|
|||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 视图输出参数设置
|
||||||
|
* @access public
|
||||||
|
* @param mixed $config
|
||||||
|
* @param mixed $value
|
||||||
|
*/
|
||||||
|
public function http($config=[],$value=''){
|
||||||
|
if(is_array($config)) {
|
||||||
|
$this->config = array_merge($this->config,$config);
|
||||||
|
}else{
|
||||||
|
$this->config[$config] = $value;
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 输出内容文本可以包括Html
|
* 输出内容文本可以包括Html
|
||||||
* @access private
|
* @access private
|
||||||
|
|||||||
Reference in New Issue
Block a user