【问题标题】:why there is no output of the test code?为什么没有输出测试代码?
【发布时间】:2013-02-25 13:28:44
【问题描述】:

在 Magento CMS 页面中,我添加代码:

 {{block type=”core/template” name=”review” template=”catalog/product/reviewall.phtml”}}

网址键是review.html

然后添加文件reviewall.phtml(app/design/frontend/default/mytheme/template/catalog/product/reviewall.phtml)

然后在其文件中添加测试代码。

echo "hello world";

当我访问 URL mysiteurl/review.html 时,没有 hello world 输出。为什么?如何纠正?

【问题讨论】:

    标签: magento


    【解决方案1】:

    您的代码看起来正确,但是您的引号看起来像 unicode 右引号 - 替换引号就可以了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-21
      • 2011-01-23
      • 2015-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-20
      相关资源
      最近更新 更多