think icon indicating copy to clipboard operation
think copied to clipboard

think/view.php中的config函数是不是写错了呀?

Open gthanks opened this issue 10 years ago • 2 comments

//think/view.php==========================
 public function config($config = '', $value = '')
    {
        if (is_array($config)) {
            foreach ($this->config as $key => $val) {
                if (isset($config[$key])) {
                    $this->config[$key] = $config[$key];
                }
            }
        } else {
            $this->config[$config] = $value;
        }
        return $this;
    }

其中的

foreach ($this->config as $key => $val) { ...... }

是不是应该更改为

foreach ($config as $key => $val) { ...... }

请检查!!!

gthanks avatar Dec 20 '15 01:12 gthanks

这个真木有写错

liu21st avatar Dec 20 '15 01:12 liu21st

明白了!

gthanks avatar Dec 20 '15 02:12 gthanks