Comment insérer un Contrôleur dans Twig avec “rendu” dans Symfony 2.2?

Je me suis mise à niveau de mon projet de Symfony 2.0.22 à 2.2.0 et revue de quelques changements, mais je suis bloqué sur ce :

Je tiens à rendre (comme dans la Sf 2.0.X) un en-tête avec leur contrôleur et le "rendu" de rameau méthode ne fonctionne pas pour moi. Leur est le message d'erreur :

Une exception a été levée lors de la génération d'un modèle ("Pas de
itinéraire trouvé pour "OBTENIR de l'Indice:l'en-tête"") dans
"OSSiteBundle:Index:index.html.brindille".

Ici est la méthode de rendu :

{# src/OS/SiteBundle/Resources/views/layout.html.twig #}

...

{% render "OSSiteBundle:Indice:en-tête" avec {'thisid' : block (thisid'), ... } %}

J'ai essayé :

{{ render('OSSiteBundle:Index:header' , {'thisid' : block('thisid'), 'thistitle' : block('thistitle'), 'thisunderpageid' : block('thisunderpageid'), 'thisbackground' : block('thisbackground') }) }}

{{ include("OSSiteBundle:Index:header.html.twig", {'thisid' : block('thisid'), 'thistitle' : block('thistitle'), 'thisunderpageid' : block('thisunderpageid'), 'thisbackground' : block('thisbackground') }) }}

=> Le dernier travail, mais le Contrôleur n'est pas refroidit par de cette façon

J'ai essayé même un rendu avec un chemin de routage.yml... j'ai pas d'autre idée m'aider s'il vous plaît!

InformationsquelleAutor Benji_X80 | 2013-03-05