diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index 4c72abb03c1..bad80fc4da2 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -44,6 +44,8 @@ TwigBundle Configuration ("twig") strict_variables: ~ auto_reload: ~ optimizations: ~ + paths: + "%kernel.root_dir%/../vendor/acme/foo-bar/templates": foo_bar .. code-block:: xml @@ -53,12 +55,14 @@ TwigBundle Configuration ("twig") xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd"> - + MyBundle::form.html.twig 3.14 + AcmeFooBundle:Exception:showException + %kernel.root_dir%/../vendor/acme/foo-bar/templates @@ -74,13 +78,18 @@ TwigBundle Configuration ("twig") 'foo' => '@bar', 'pi' => 3.14, ), - 'auto_reload' => '%kernel.debug%', - 'autoescape' => true, - 'base_template_class' => 'Twig_Template', - 'cache' => '%kernel.cache_dir%/twig', - 'charset' => '%kernel.charset%', - 'debug' => '%kernel.debug%', - 'strict_variables' => false, + 'auto_reload' => '%kernel.debug%', + 'autoescape' => true, + 'base_template_class' => 'Twig_Template', + 'cache' => '%kernel.cache_dir%/twig', + 'charset' => '%kernel.charset%', + 'debug' => '%kernel.debug%', + 'strict_variables' => false, + 'exception_controller' => 'AcmeFooBundle:Exception:showException', + 'optimizations' => true, + 'paths' => array( + '%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar', + ), )); Configuration pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy