protected function getTemplateFilename()
    {
        $filename = $this->name . '/layout.' . $this->extension . '.twig';

        $template_path = $this->path . DIRECTORY_SEPARATOR . $filename;
        if (!file_exists($template_path)) {
            throw new \DomainException('Template file "' . $template_path . '" could not be found');
        }

        return $filename;
    }
protected function getTemplateFilename()
    {
        $filename = $this->name . '/layout.' . $this->extension . '.twig';

        $template_path = $this->path . DIRECTORY_SEPARATOR . $filename;
        if (!file_exists($template_path)) {
            throw new \DomainException('Template file "' . $template_path . '" could not be found');
        }

        return $filename;
    }
protected function getTemplateFilename ( ) { $ filename = $ this -> name . '/layout.' . $ this -> extension . '.twig' ; $ template_path = $ this -> path . DIRECTORY_SEPARATOR . $ filename ; if ( ! file_exists ( $ template_path ) ) { throw new \ DomainException ( 'Template file "' . $ template_path . '" could not be found' ) ; } return $ filename ; }
Returns the filename for the template.

The filename is composed of the following components:

- the template base folder
- the template's name
- a path separator
- the literal 'layout' combined with the extension
- and as final extension the literal '.twig'

@throws \DomainException if the template does not exist.

@return string
Returns the filename for the template .