I'm programming in Symfony 2, where I have two bundles to maintain. Their views extend the base.html.twig (app-wide template) like:
{% extends '::base.html.twig' %}
...
Now the base.html.twig looks like:
...
<title>{{ page_title }}</title>
...
Now my question is how and where I can define the variable page_titel in order that the two bundles have different page-titles. I know, I could set the variable within the template-rendering in each action-method of the controller, but due the fact that the page-titel is static within one bundle, I'm searching an approach where I only have to define the variable once. Something like:
#app/config/config.yml
twig:
global:
foo: bar
but not application-wide, but bundle-wide! Any hints?