Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Global component in Symfony

Tags:

php

symfony1

I am currently implementing the navigation of the website (multilevel menu, having current page highlighted). As navigation part will be included for virtually all modules, I first made it a global partial. But logic for selection of "current page" is quite complicated in some situations, I am thinking of using a component for the navigation.

The problem is that symfony allows to have global partials, but not global components. So is there a "nice symfony way" to do this?

like image 746
Levon Mirzoyan Avatar asked Oct 18 '10 09:10

Levon Mirzoyan


1 Answers

There isn't a mechanism for this as such. I usually end up creating an empty module called default and putting stuff like that in there.

like image 79
benlumley Avatar answered Sep 29 '22 18:09

benlumley