src/Leevel/View/Connect.php
protected function parseDisplayFile(?string $file = null, ?string $ext = ''): string
    {
        if (!is_file($file)) {
            $file = $this->parseFile($file, $ext);
        }

        if (!is_file($file)) {
            throw new RuntimeException(
                sprintf('Template file %s does not exist.', $file)
            );
        }

        return $file;
    }
protected function parseDisplayFile(?string $file = null, ?string $ext = ''): string
    {
        if (!is_file($file)) {
            $file = $this->parseFile($file, $ext);
        }

        if (!is_file($file)) {
            throw new RuntimeException(
                sprintf('Template file %s does not exist.', $file)
            );
        }

        return $file;
    }
分析展示的视图文件.

@param string $file
@param string $ext

@return string