Skip to content

Commit 9ca74ce

Browse files
authored
Merge pull request #325 from dbu/doc-template-fix
fix config doc
2 parents 42ff195 + ba54399 commit 9ca74ce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Resources/doc/index.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Step 3: (optional) Configure the bundle
5050
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5151

5252
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:
5454

5555
.. configuration-block::
5656

@@ -60,7 +60,7 @@ If you skip this step, these defaults will be used.
6060
knp_menu:
6161
# use "twig: false" to disable the Twig extension and the TwigRenderer
6262
twig:
63-
template: knp_menu.html.twig
63+
template: KnpMenuBundle::menu.html.twig
6464
# if true, enables the helper for PHP templates
6565
templating: false
6666
# the renderer to use, list is also available by default
@@ -82,7 +82,7 @@ If you skip this step, these defaults will be used.
8282
default-renderer="twig"
8383
>
8484
<!-- 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"/>
8686
</knp-menu:config>
8787
</container>
8888
@@ -92,14 +92,19 @@ If you skip this step, these defaults will be used.
9292
$container->loadFromExtension('knp_menu', array(
9393
// use 'twig' => false to disable the Twig extension and the TwigRenderer
9494
'twig' => array(
95-
'template' => 'knp_menu.html.twig'
95+
'template' => 'KnpMenuBundle::menu.html.twig'
9696
),
9797
// if true, enabled the helper for PHP templates
9898
'templating' => false,
9999
// the renderer to use, list is also available by default
100100
'default_renderer' => 'twig',
101101
));
102102
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+
103108
.. note::
104109

105110
Take care to change the default renderer if you disable the Twig support.

0 commit comments

Comments
 (0)