浏览代码

Add plugin folder to load twig templates

jmontoyaa 8 年之前
父节点
当前提交
d64721328b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/config/config.yml

+ 2 - 0
app/config/config.yml

@@ -85,6 +85,8 @@ twig:
     debug:            "%kernel.debug%"
     strict_variables: "%kernel.debug%"
     base_template_class: Sonata\CacheBundle\Twig\TwigTemplate14
+    paths:
+        '%kernel.root_dir%/../plugin': plugin
 
     form:
         resources: