Magento: How to include a php call in the CMS pages

∥☆過路亽.° 提交于 2019-12-06 02:10:02

These are an unnecessary works, you can simply call the php file by adding the following line into that cms page content

   {{block type="core/template" template="page/urfile.phtml"}}

Then create file under the page directory

go to Magento Admin->CMS->Pages

  1. Click Add New Page
  2. Input Page Title
  3. Input URL Key
  4. Right Content inside (body)
  5. paste your code.

Hope this help

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!