Magento: Read config XML nodes

Here, I will be showing you how you can read XML nodes from config.xml file of your module. It’s through the Magento way with Mage::getConfig()->getNode() function. :) Here is the XML code of my config.xml file. I will be reading the nodes of this XML file. <default> <catalog> <mypage> <name>myname</name> <age>100</age> <address_one>earth</address_one> </mypage> </catalog> </default> … Read more

Magento: Access denied in admin of custom module

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration. In the file below, I have just … Read more