繁体   English   中英

Magento-由于某些原因,我的区块未显示

[英]Magento - My block is not being displayed for some reason

我已经尝试按照指南进行操作

除了我添加的内容外,我已经以完全相同的方式完成了所有操作:

<?php echo $this->getFeaturedProductHtml()?>

代替

<?=$this->getFeaturedProductHtml()?>

在view.phtml中

我已经检查了exception.log和system.log,但是在这些文件中找不到任何内容。

我经历了很多事情,但是我没有经验,也不了解如何在magento环境中调试/寻找解决方案。

使用Mage::log('debug text')看看它具有哪些功能。 从那里您可以检测出问题所在。 或者,您可以只使用来自inchoo的模块,该模块可能写得更好,更干净: http : //www.magentocommerce.com/magento-connect/featured-products-4605.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM