瀏覽代碼

Minor - Adding debug.

So you can use  this {% debug variable %} in your templates
Julio Montoya 10 年之前
父節點
當前提交
9212f3988f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/config/config_dev.yml

+ 6 - 0
app/config/config_dev.yml

@@ -47,3 +47,9 @@ web_profiler_extra:
     twig:
         enabled:        true
         display_in_wdt: true
+
+services:
+    twig.extension.debug:
+        class: Twig_Extensions_Extension_Debug
+        tags:
+            - { name: twig.extension }