think
think copied to clipboard
think/view.php中的config函数是不是写错了呀?
//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) { ...... }
请检查!!!
这个真木有写错
明白了!