diff --git a/Think/View.php b/Think/View.php index 121bdb69..2275f22f 100644 --- a/Think/View.php +++ b/Think/View.php @@ -102,6 +102,21 @@ class View { 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 * @access private