public function getSitePageTemplate(Site $site, $template = null)
    {
        $themePageConfig = $this->getSitePageTemplateConfig($site, $template);

        if (empty($themePageConfig['file'])) {
            throw new RuntimeException('No Page Template Found in config');
        }

        return $themePageConfig['file'];
    }
public function getSitePageTemplate(Site $site, $template = null)
    {
        $themePageConfig = $this->getSitePageTemplateConfig($site, $template);

        if (empty($themePageConfig['file'])) {
            throw new RuntimeException('No Page Template Found in config');
        }

        return $themePageConfig['file'];
    }
public function getSitePageTemplate ( Site $ site , $ template = null ) { $ themePageConfig = $ this -> getSitePageTemplateConfig ( $ site , $ template ) ; if ( empty ( $ themePageConfig [ 'file' ] ) ) { throw new RuntimeException ( 'No Page Template Found in config' ) ; } return $ themePageConfig [ 'file' ] ; }
Get Page Template method will attempt to locate and fetch the correct template
for the page.  If found it will pass back the path to correct
view template so that the indexAction can pass that value on to the
renderer.  Default page template is set by the themes configuration and can
also be set per page.

@param Site $site Site to lookup
@param string|null $template Template to find

@return string
@throws RuntimeException
@throws InvalidArgumentException
Get Page Template method will attempt to locate and fetch the correct template for the page . If found it will pass back the path to correct view template so that the indexAction can pass that value on to the renderer . Default page template is set by the themes configuration and can also be set per page .