简体   繁体   English

如何在自定义主题Magento中使用主题块

[英]How to use theme block into custom theme Magento

I have a paid Magento template. 我有一个付费的Magento模板。 and it has some features like testimonials blog etc. Also i have a custom theme and i want to use the testimonials feature in custom theme which is another store. 并且它具有一些功能,例如推荐博客等。我也有一个自定义主题,我想在另一个商店的自定义主题中使用推荐功能。 I have copy all the files into my custom theme. 我已将所有文件复制到我的自定义主题中。 and i am trying to display like below code. 我试图显示如下代码。 but nothing showing. 但什么也没显示。

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('magentothem/testimonial/sidebar/slider.phtml')->toHtml(); ?>

Basically ('core/template') was not related to this module. 基本上('core/template')与此模块无关。 Here you should use to correct block class name. 在这里,您应该使用正确的块类名称。

('testimonial/sidebar')

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

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