S
S
spein2013-03-17 23:08:17
symfony
spein, 2013-03-17 23:08:17

Cross controller data in Symfony 2.2?

Hello,
The menu is being formed from the database. It, as you understand, should be displayed throughout the site. How to make it so that, regardless of the called controller, the data goes to the template?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nuclear, 2013-03-17
@spein

In the layout, render an action that gives out a menu?
{% render controller('MenuBundle:Default:list') %}
And it is better to use some kind of bundle for this purpose.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question