src/MVC/View.php
function tpl($tpl_name, $get_content = false, $auto_append_suffix = true)
    {
        $file_path = $this->getTplPath() . $tpl_name;
        if ($auto_append_suffix) {
            $file_path .= $this->tpl_file_suffix;
        }

        if (true === $get_content) {
            return file_get_contents($file_path, true);
        }

        return $file_path;
    }
function tpl($tpl_name, $get_content = false, $auto_append_suffix = true)
    {
        $file_path = $this->getTplPath() . $tpl_name;
        if ($auto_append_suffix) {
            $file_path .= $this->tpl_file_suffix;
        }

        if (true === $get_content) {
            return file_get_contents($file_path, true);
        }

        return $file_path;
    }
模板的绝对路径

@param $tpl_name
@param bool $get_content 是否读取模板内容
@param bool $auto_append_suffix 是否自动添加模版后缀
@return string