如何将PHP语法放在Magento的cms页面上

时间:2013-05-15 10:19:01

标签: magento magento-1.7 magento-1.5

如何在Magento的cms页面上输入php代码?

图片在这里:http://screencast.com/t/COgHigLih7

我想提出

<?php
 echo "Test";
?>

1 个答案:

答案 0 :(得分:5)

您无法将php代码直接添加到cms页面的内容中

你可以做的是将你的PHP代码添加到pthml然后从你的cms页面调用它

{{block type="core/template" name="contactForm" template="contacts/my_php_code.phtml"}}