【发布时间】:2011-01-12 12:14:55
【问题描述】:
我有一个名为newest_product(带有内容)的静态块,我想将它作为html 显示在.phtml 文件中。
我试过这段代码:
echo $this->getLayout()->createBlock('cms/block')->setBlockId('newest_product')->toHtml();
但这什么都没有显示。
我是否使用了错误的代码?
【问题讨论】:
-
你刷新缓存了吗?代码接缝正确