【问题标题】:What is the difference between *.volt and *.phtml files in PhalconPHP?PhalconPHP 中的 *.volt 和 *.phtml 文件有什么区别?
【发布时间】:2013-06-24 07:31:55
【问题描述】:

在Phalcon的示例项目中,在views目录中我们有一些带有volt后缀和phtml后缀的文件。这两个后缀有什么区别?什么时候必须使用Volt,什么时候必须使用phtml?!请为我解释...

【问题讨论】:

    标签: views php phalcon difference volt


    【解决方案1】:

    当应用中设置的模板引擎是Volt(http://docs.phalconphp.com/en/latest/reference/volt.html)时使用.volt扩展名,当模板引擎是PHP本身时使用.phtml(http://docs.phalconphp.com/en/latest/reference/views.html#template-engines)

    【讨论】:

      猜你喜欢
      • 2014-07-13
      • 2017-09-30
      • 2014-01-23
      • 2013-04-04
      • 2020-08-19
      • 2011-05-22
      • 2010-10-26
      • 2011-01-26
      • 2010-10-28
      相关资源
      最近更新 更多