I am trying to echo a message from my config.xml in an alert javascript.

Is this possible with magento?

  • why would you do that? Jun 27, 2014 at 9:10
  • Please define "message" in config.xml.
    – LDusan
    Jul 27, 2014 at 14:23

1 Answer 1


Assuming this is your config file:


You can access your config variables with the following code:

echo Mage::getConfig()->getNode('myzone/myspace')->name;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.