Skip to content

Instantly share code, notes, and snippets.

@zeloc
Forked from doug48/getConfigNodes.php
Created August 16, 2018 08:23
Show Gist options
  • Save zeloc/7776647292f1cd078e1503817fee9c7c to your computer and use it in GitHub Desktop.
Save zeloc/7776647292f1cd078e1503817fee9c7c 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