Skip to content

Instantly share code, notes, and snippets.

@doug48
Last active August 16, 2018 08:23
Show Gist options
  • Save doug48/9b712b69c793f65081f2d8467ca29d8d to your computer and use it in GitHub Desktop.
Save doug48/9b712b69c793f65081f2d8467ca29d8d to your computer and use it in GitHub Desktop.
magento 1 get config.xml node values
<?php
//Note name children with unique names
//<store_attachments>
// <store_1></store_1>
//
//</store_attachments>
$value = Mage::getConfig()->getNode('store_attachemnts')->asArray();
// or
$value = Mage::getConfig()->getNode('default/store_attachemnts')->asArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment