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

Exception not thrown when twig template does not exist

    XMLWordPrintable

Details

    Description

      In the new stack, eZ Publish does not properly throw an exception if a template does not exist.

      Steps to reproduce:

      1. In a controller, try to render a non-existent template:

      return $this->render( 'HootsuiteBaseBundle::nonexistent.html.twig' );
      

      Instead of throwing an exception, the output just shows the path to the non-existent template.

      2. In a controller, check whether a non-existent template exists:

      if( $this->get( 'templating' )->exists( 'eztTrainingBundle::nonexistent.html.twig' ) )
      {
      	die( 'exists' );
      }
      

      The "exists" check always returns true.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h