private function fetchTemplateForNamespace($template, $namespace)
    {
        foreach ($this->getTemplatePath($namespace) as $path) {
            if (! empty($path)) {
                $path .= '/';
            }

            $filename = $path . $template;
            if (file_exists($filename)) {
                return file_get_contents($filename);
            }
        }

        return false;
    }
private function fetchTemplateForNamespace($template, $namespace)
    {
        foreach ($this->getTemplatePath($namespace) as $path) {
            if (! empty($path)) {
                $path .= '/';
            }

            $filename = $path . $template;
            if (file_exists($filename)) {
                return file_get_contents($filename);
            }
        }

        return false;
    }
private function fetchTemplateForNamespace ( $ template , $ namespace ) { foreach ( $ this -> getTemplatePath ( $ namespace ) as $ path ) { if ( ! empty ( $ path ) ) { $ path .= '/' ; } $ filename = $ path . $ template ; if ( file_exists ( $ filename ) ) { return file_get_contents ( $ filename ) ; } } return false ; }
Attempt to retrieve a template for a given namespace.

@param string $template
@param string $namespace
@return false|string False on failure to resolve, string path otherwise.
Attempt to retrieve a template for a given namespace .