Mage::getStoreConfig

在使用getStoreConfig()方法的时候,注意后台的配置信息,后台配置是在程序里面还是在管理后台配置的地方,一定要找对位置显示。这个方法在Mage.php文件中

 /**
     * Retrieve config value for store by path
     *
     * @param string $path
     * @param mixed $store
     * @return mixed
     */
    public static function getStoreConfig($path, $store = null)
    {
        return self::app()->getStore($store)->getConfig($path);
    }

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用 * 标注