小编use*_*603的帖子

解析错误:语法错误,意外"公共"(T_PUBLIC)

我在magento管理页面上的"redirect base 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);
}
Run Code Online (Sandbox Code Playgroud)

我自己也无法弄清楚这个问题,因为我是一个有这种东西的菜鸟.有人可能会帮助我吗?:)

php syntax parsing public magento

4
推荐指数
2
解决办法
3万
查看次数

标签 统计

magento ×1

parsing ×1

php ×1

public ×1

syntax ×1