protected function createTemplate($type)
    {
        $class = $this->resolveTypeClassName($type);

        if (!($template = $class::inTheme($this->theme))) {
            throw new ApplicationException(trans('cms::lang.template.not_found'));
        }

        return $template;
    }
protected function createTemplate($type)
    {
        $class = $this->resolveTypeClassName($type);

        if (!($template = $class::inTheme($this->theme))) {
            throw new ApplicationException(trans('cms::lang.template.not_found'));
        }

        return $template;
    }
protected function createTemplate ( $ type ) { $ class = $ this -> resolveTypeClassName ( $ type ) ; if ( ! ( $ template = $ class :: inTheme ( $ this -> theme ) ) ) { throw new ApplicationException ( trans ( 'cms::lang.template.not_found' ) ) ; } return $ template ; }
Creates a new template of a given type
@param string $type
@return mixed
Creates a new template of a given type