Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.1
-
Aconcagua Sprint 4
Description
I read page https://confluence.ez.no/display/EZP/Legacy+code+and+features
So, I run a page with non legacy siteaccess.
My template:
{% block content %}
{{ render( url('content/view/sitemap/2') ) }}
{% endblock %}
When running page,the error appeared:
An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'content/view/sitemap/2' not found" in TmnTgkmBundle::legacy.html.twig at line 5.
Some information:
- My controller inherits eZ\Bundle\EzPublishCoreBundle\Controller
- My action function very simple:
public function homeAction() { return $this->render( "TmnTgkmBundle::legacy.html.twig" ); }
My question is why sub-request {{ render( url('content/view/sitemap/2') ) }} don't work ? Is the documentation written in principle, not in practice ?