Tag Archives: symfony2

Symfony: find all default global variables in twig

Twig ships with some default global variables that you can use. Where does this variables come from? You will see a Globals section. Take the ‘app’ variable for example, you can find all the variables available in that file. That is why {{ app.user }} works. To see all the variables in app.user, {{ dump(app.user) … Continue reading

Symfony: Quick way to change bundle name

You have generated a new bundle under src/Oldnamespace/oldbundle and decided to change the bundle name or move it to a new name space. Symfony doesn’t provide any tools to do that. Sounds like a tedious job… There is no short cut to this solution but some Bash scripting can save your lots of time. Use … Continue reading