On Fri, 11 Feb 2011 14:25:00 +0100, Christophe Beyer
wrote:
> This works great :
>> {% block title %}My title - {{ parent() }}{% endblock %}
>
>
> Nothing about this tip in the documentation, I could'nt know this.
>
> Thanks !
>
The Twig documentation clearly says that the "parent" function e
This works great :
> {% block title %}My title - {{ parent() }}{% endblock %}
Nothing about this tip in the documentation, I could'nt know this.
Thanks !
--
Christophe
Le 11 févr. 2011 à 14:00, stof a écrit :
> On Fri, 11 Feb 2011 13:53:00 +0100, Christophe Beyer
> wrote:
>> My main HTM
On Fri, 11 Feb 2011 13:53:00 +0100, Christophe Beyer
wrote:
> My main HTML layout looks like that :
>
>
>
>
> />
> {% block title 'Default title - example.com' %}
>
>
> I want to have only to write this in my controller layout :
> {% block title %}My title{% endb
My main HTML layout looks like that :
{% block title 'Default title - example.com' %}
I want to have only to write this in my controller layout :
{% block title %}My title{% endblock %}
instead
{% block title %}My title - Default title - example.com{% endblock %}
Ton re