Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

XML Configration
 
nikunj_ver85
Jr. Member
 
Total Posts:  1
Joined:  2013-04-02
 

Hi,

I have follow instruction as per magento U, configuration XML. but XML configuration is not working from my side.

Here is code which i have done.

app/etc/First_Module.xml

<?xml version=\\\"1.0\\\"?>

<config>
<modules>
<First_Module>
<active>true</active>
<codePool>local</codePool>
</First_Module>
</modules>
</config>

in local codePool

First/Module/etc/config.xml

<?xml version=\\\"1.0\\\"?>
<config>
<default>
<some>
<ranadom>
<xpath>Here is value</xpath>
</ranadom>
</some>
</default>
</config>

Now, I want to call xpath value in cmsController indexAction()

For that I have put code in cms/contollers/indexAction()

echo \\\"test\\\";
echo Mage::getStoreConfig(\\\’some/random/xpath\\\’);
die;

With help of echo Mage::getStoreConfig(\\\’some/random/xpath\\\’); i am call value of xpath Tag.

when my cms indexAction() will call at that time. I can see Here is value.

Can any one tell where i am wrong?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top