如何在自定义主题 Magento 中使用主题块
How to use theme block into custom theme Magento
我有一个付费的 Magento 模板。它有一些功能,如推荐博客等。我还有一个自定义主题,我想在另一家商店的自定义主题中使用推荐功能。
我已将所有文件复制到我的自定义主题中。我正在尝试显示如下代码。但没有显示。
<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('magentothem/testimonial/sidebar/slider.phtml')->toHtml(); ?>
基本上('core/template')
与这个模块无关。在这里你应该使用更正块 class name.
('testimonial/sidebar')
我有一个付费的 Magento 模板。它有一些功能,如推荐博客等。我还有一个自定义主题,我想在另一家商店的自定义主题中使用推荐功能。 我已将所有文件复制到我的自定义主题中。我正在尝试显示如下代码。但没有显示。
<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('magentothem/testimonial/sidebar/slider.phtml')->toHtml(); ?>
基本上('core/template')
与这个模块无关。在这里你应该使用更正块 class name.
('testimonial/sidebar')