소스 검색

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: