@@ -50,7 +50,7 @@ Step 3: (optional) Configure the bundle
50
50
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51
51
52
52
The bundle comes with a sensible default configuration, which is listed below.
53
- If you skip this step, these defaults will be used.
53
+ You can define these options if you need to change them:
54
54
55
55
.. configuration-block ::
56
56
@@ -60,7 +60,7 @@ If you skip this step, these defaults will be used.
60
60
knp_menu :
61
61
# use "twig: false" to disable the Twig extension and the TwigRenderer
62
62
twig :
63
- template : knp_menu .html.twig
63
+ template : KnpMenuBundle::menu .html.twig
64
64
# if true, enables the helper for PHP templates
65
65
templating : false
66
66
# the renderer to use, list is also available by default
@@ -82,7 +82,7 @@ If you skip this step, these defaults will be used.
82
82
default-renderer =" twig"
83
83
>
84
84
<!-- add enabled="false" to disable the Twig extension and the TwigRenderer -->
85
- <knp-menu : twig template =" knp_menu .html.twig" />
85
+ <knp-menu : twig template =" KnpMenuBundle::menu .html.twig" />
86
86
</knp-menu : config >
87
87
</container >
88
88
@@ -92,14 +92,19 @@ If you skip this step, these defaults will be used.
92
92
$container->loadFromExtension('knp_menu', array(
93
93
// use 'twig' => false to disable the Twig extension and the TwigRenderer
94
94
'twig' => array(
95
- 'template' => 'knp_menu .html.twig'
95
+ 'template' => 'KnpMenuBundle::menu .html.twig'
96
96
),
97
97
// if true, enabled the helper for PHP templates
98
98
'templating' => false,
99
99
// the renderer to use, list is also available by default
100
100
'default_renderer' => 'twig',
101
101
));
102
102
103
+ .. versionadded::2.1.2
104
+
105
+ The template used to be ``knp_menu.html.twig`` which did not translate menu entries.
106
+ Version 2.1.2 adds the template that translates menu entries.
107
+
103
108
.. note ::
104
109
105
110
Take care to change the default renderer if you disable the Twig support.
0 commit comments