Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21052

Subrequests with legacy modules don't work

    XMLWordPrintable

Details

    • 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 ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            annetco annetco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours
                1d 2h