开发者

How to set global configuration in Magento?

I am going to talking about some the confi开发者_如何学Pythong issue in Magento:

Let me assume that:

If I want to declare some global configuration in app/etc/config.xml for:

I want to set delay time for refresh page as 5000ms.

In the code, I will try to get like below:

Mage::app()->getConfig()->getDelayTime();

or

Mage::app()->getConfig()->get('delaytime');

How should I do?


Inside default node put something like

<settings>
    <delaytime>5000</delaytime>
</settings>

and then get this value:

<?php Mage::getStoreConfig('settings/delaytime'); ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜