public function getTemplate($name)
    {
        if (!isset($this->templates[$name])) {
            throw new MissingTemplateException(sprintf('Unable to get template for "%s", there is no such template configured.', $name));
        }

        $template = (string) $this->templates[$name];
        if ('' === $template) {
            throw new MissingTemplateException(sprintf('Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.', $name));
        }

        return $template;
    }
public function getTemplate($name)
    {
        if (!isset($this->templates[$name])) {
            throw new MissingTemplateException(sprintf('Unable to get template for "%s", there is no such template configured.', $name));
        }

        $template = (string) $this->templates[$name];
        if ('' === $template) {
            throw new MissingTemplateException(sprintf('Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.', $name));
        }

        return $template;
    }
public function getTemplate ( $ name ) { if ( ! isset ( $ this -> templates [ $ name ] ) ) { throw new MissingTemplateException ( sprintf ( 'Unable to get template for "%s", there is no such template configured.' , $ name ) ) ; } $ template = ( string ) $ this -> templates [ $ name ] ; if ( '' === $ template ) { throw new MissingTemplateException ( sprintf ( 'Unable to get template for "%s", it seems the template value is empty. Make sure you enabled the proper section and configured a proper value.' , $ name ) ) ; } return $ template ; }
Get the View template for the given config-name.

@param string $name

@return string
Get the View template for the given config - name .