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

Block problem
 
Vofka
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-06-19
 

In my catalog.xml I have that row

<block type="overload/prtemplate" name="waysToBuy" as="waysToBuy" template="catalog/product/ways.phtml"/>
Block type point to my module block prtemplate.php

In view.phtml I call my block with

<?=$this->getChildHtml('waysToBuy')?>
It works perfect on localhost, but when I moved magento on server it dont’t.
What’s happening ?
 
Magento Community Magento Community
Magento Community
Magento Community
 
Anton Makarenko
Magento Team
 
Avatar
Total Posts:  184
Joined:  2008-05-13
Los Angeles, CA
 

Is your localhost on windows and server is *nix? Then make sure your block filename (and its folders) first letter is uppercase.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vofka
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-06-19
 

Damn… Thanks a lot, my prtemplate.php filename first letter was lowercase.

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