我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在Symfony2中禁用模板功能

I'm looking forward to use Symfony2. But i dont want to use a template engine. How can I disable the default templating engine "twig" and use native php?

I would look at http://symfony.com/doc/current/cookbook/templating/PHP.html

This page explains how to use plain php instead of twig. Also to remove twig capability from your app you can also remove it from the config file

framework:
    # ...
    templating:    { engines: ['php'] }

近期文章

  • PHP如果在数组中,请使用该值执行某些操作
  • 从PHP调用特定版本的python
  • unserialize + php给出转换原始值
  • (重现strcmp函数)为什么结果不是1?是字符串的输入有问题吗?
  • for循环获取队列ConcurrentLinkedQueue中的元素,为什么只能取到一半的值,求解
  • 814G的json文件怎么分批导入mongodb中
  • 有没有大佬知道怎么判断定时任务的时间区间
  • Python pandas 读取Excel文件
  • 为什么我的for循环功能不像我期望的那样? [关闭]
  • Doctrine ManyToOne不会级联持久化
  • 试图理解php中的ReflectionClass
  • 从utc时间和百分比计算日期
  • 自定义Wordpress主题 - fancybox无法正常工作?
  • 为什么mb_ereg()没有检测到阿拉伯字符?
  • 带有Server 2008和PHP的Windows SMTP Server
  • 如何使用pdo作为getter来获取最佳数据
  • PHP使用添加的变量回显$ _SERVER ['PHP_SELF']?
  • PHP rename()不会在出错时抛出异常
  • 使用ajax jquery将变量传递给php页面?
  • symfony组验证如何工作

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华