From 4f3f63a3bb216909881b11d037e9807610932e14 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 6 Apr 2013 16:04:01 +0800 Subject: [PATCH] =?UTF-8?q?View=E7=B1=BB=E5=A2=9E=E5=8A=A0http=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E7=94=A8=E4=BA=8E=E8=AE=BE=E7=BD=AE=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E8=BE=93=E5=87=BA=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Think/View.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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