【发布时间】:2014-03-06 02:09:48
【问题描述】:
我在 magento 管理页面上的“重定向基本 url”选项中更改了一些内容。然而,结果并没有那么好。之后我收到以下错误:
解析错误:语法错误,第 662 行 ..../public_html/app/code/core/Mage/Core/Model/Config.php 中出现意外的“公共”(T_PUBLIC)
附上代码:
public function setNode($path, $value, $overwrite = true)
{
if ($this->_useCache && ($path !== null)) {
$sectionPath = explode('/', $path);
$config = $this->_getSectionConfig($sectionPath);
if ($config) {
$sectionPath = array_slice($sectionPath, $this->_cacheSections[$sectionPath[0]]+1);
$sectionPath = implode('/', $sectionPath);
$config->setNode($sectionPath, $value, $overwrite);
}
}
return parent::setNode($path, $value, $overwrite);
}
我自己无法弄清楚问题所在,因为我是这类东西的新手。有人可以帮帮我吗?:)
【问题讨论】:
-
请显示之前的行。
标签: php parsing magento syntax public