Try the Demo

Magento Forum

   
Not displaying the content that is there in .phtml file
 
DevHasMag
Jr. Member
 
Total Posts:  18
Joined:  2007-12-19
 

Hello All,

Can anyone please help?
I have a URL like http://mydomain.com/store/sampleorder/tsample
I have created folders Block, controllers, etc in my app/code/local/Mage/Sampleorder folder.
But the tsample.phtml file created is not read.
When i execute the URL, i dont see any output.
In my etc folder(/store/app/code/local/Mage/Sampleorder/etc), there is a config file in which the code is wriiten like,
<?xml version="1.0"?>
<config>
<global>
<blocks>
<!-- declare sampleorder block group -->
<sampleorder>
<class>Mage_Sampleorder_Block</class>
</sampleorder>
</blocks>
</global>

<frontend>
<routers>
<!-- declare a router for urls starting with /sampleorder -->
<sampleorder>
<use>standard</use>
<args>
<module>Mage_Sampleorder</module>
<frontName>sampleorder</frontName>
</args>
</sampleorder>
</routers>

<layout>
<updates>
<!-- declare a file that will supply layout updates for your controllers -->
<sampleorder>
<file>sampleorder/sampleorder.xml</file>
</sampleorder>
</updates>
</layout>
</frontend>
</config>
i think my sampleorder.xml is not read.
Can anyone please help? I have been trying this and not able to get.

Regards,
DevHasMag

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

it should be just <file>sampleorder.xml</file>

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
DevHasMag
Jr. Member
 
Total Posts:  18
Joined:  2007-12-19
 

I tried giving sampleorder.xml.
Its not working.
There is no main.xml used on the server also.
Please provide a solution
I have uploaded the sampleorder.xml file in this path “app\design\frontend\default\default\layout”.
But its not reading. Can you please help.

Regards,
DevHasMag.

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