public function resolveFile($name)
    {
        $components = $this->parseResource($name);
        foreach ($components['dirs'] as $dir) {
            if (is_file($file = $dir . ($dir ? '/' : '') .  $components['file'])) {
                return $file;
            }
        }
        return false;
    }
public function resolveFile($name)
    {
        $components = $this->parseResource($name);
        foreach ($components['dirs'] as $dir) {
            if (is_file($file = $dir . ($dir ? '/' : '') .  $components['file'])) {
                return $file;
            }
        }
        return false;
    }
public function resolveFile ( $ name ) { $ components = $ this -> parseResource ( $ name ) ; foreach ( $ components [ 'dirs' ] as $ dir ) { if ( is_file ( $ file = $ dir . ( $ dir ? '/' : '' ) . $ components [ 'file' ] ) ) { return $ file ; } } return false ; }
Resolve the template file by name

@param  string $name The name of template
@return string|false The template file path or false if file not found
Resolve the template file by name