开发者

Get Magento config information

开发者 https://www.devze.com 2023-01-22 16:59 出处:网络
I\'m trying to get the base url and the media directory from the Magento configuration and I\'m try开发者_JAVA百科ing to use them for a template that has images. I\'ve only gotten as far Mage::getConf

I'm trying to get the base url and the media directory from the Magento configuration and I'm try开发者_JAVA百科ing to use them for a template that has images. I've only gotten as far Mage::getConfig(). I'm not sure what to do next...


Mage::getBaseDir ($type='base')

http://freegento.com/doc/d8/dcb/class_mage.html#7c9023c03db151ba782ec95ab289f2fe

Or also

<?php echo Mage::getURL('customerfolder/subfolder')."images/payment_types.gif" ?>

This will return would return http://www.yourdomain.com/customerfolder/subfolder

0

精彩评论

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

关注公众号