public function getFile($name)
    {
        if ($file = $this->resolveFile($name)) {
            return $file;
        } else {
            $components = $this->parseResource($name);
            throw new \RuntimeException(sprintf('Template "%s" not found in directories "%s"', $components['file'], implode('", "', $components['dirs'])));
        }
    }
public function getFile($name)
    {
        if ($file = $this->resolveFile($name)) {
            return $file;
        } else {
            $components = $this->parseResource($name);
            throw new \RuntimeException(sprintf('Template "%s" not found in directories "%s"', $components['file'], implode('", "', $components['dirs'])));
        }
    }
public function getFile ( $ name ) { if ( $ file = $ this -> resolveFile ( $ name ) ) { return $ file ; } else { $ components = $ this -> parseResource ( $ name ) ; throw new \ RuntimeException ( sprintf ( 'Template "%s" not found in directories "%s"' , $ components [ 'file' ] , implode ( '", "' , $ components [ 'dirs' ] ) ) ) ; } }
Get the template file by name

@param  string    $name The name of template
@return string    The template file path
@throws \RuntimeException When template file not found
Get the template file by name