src/TemplatesManager.php
public function getTemplatePath($namespace)
    {
        if (!$this->hasTemplatePath($namespace)) {
            throw new \RuntimeException("Path with namespace \"".$namespace."\" is not exist");
        }

        $path = $this->paths[$namespace];

        if (!is_dir($path)) {
            throw new \RuntimeException("Invalid template path with namespace \"".$namespace."\"");
        }

        return $path;
    }
public function getTemplatePath($namespace)
    {
        if (!$this->hasTemplatePath($namespace)) {
            throw new \RuntimeException("Path with namespace \"".$namespace."\" is not exist");
        }

        $path = $this->paths[$namespace];

        if (!is_dir($path)) {
            throw new \RuntimeException("Invalid template path with namespace \"".$namespace."\"");
        }

        return $path;
    }
public function getTemplatePath ( $ namespace ) { if ( ! $ this -> hasTemplatePath ( $ namespace ) ) { throw new \ RuntimeException ( "Path with namespace \"" . $ namespace . "\" is not exist" ) ; } $ path = $ this -> paths [ $ namespace ] ; if ( ! is_dir ( $ path ) ) { throw new \ RuntimeException ( "Invalid template path with namespace \"" . $ namespace . "\"" ) ; } return $ path ; }
Get themplate path by namespace

@param string $namespace
@return string
@throws \RuntimeException
Get themplate path by namespace