mam błąd w Symfony i nie moge sobie z nim poradzić :/
(przyklad z ksiązki Gajdy)
prosze o pomoc
An exception has been thrown during the rendering of a template ("No route found for "GET Default:menu"") in kernel.root_dir/Resources/views/layout.html.twig at line 9.
500 Internal Server Error - Twig_Error_Runtime
2 linked Exceptions: NotFoundHttpException » ResourceNotFoundException »
zawartość: layout.html.twig
{% extends "::base.html.twig" %} {% block body %} <div id="pojemnik"> {% render "My5TrenyBundle:Default:menu" %}// <<<<<<<<<<<<<<<<< czepia sie o tą linie :/ <div id="tresc"> {% block contents %} {% endblock %} </p> </div> <br class="clear" /> </div> {% endblock %}
zawartość: menu.html.twig
<ul> {% for entity in entities %} <li> <a href="{{ path('tren_show', { 'slug': entity.slug }) }}"> {{ entity }} </a> </li> {% endfor %} </ul>
ZAMYKAMy TEMAT,, w SYMFONY 2, należy użyć

{{ render(controller("My5TrenyBundle:Default:menu")) }}