thinkphp8模板定位方法
找到文件vendor/topthink/think-template/src/Template.php 后找到
private function parseTemplateFile(string $template):方法
大概在判断文件if (is_file($template)) {前,增加如下代码
if(env('APP_DEBUG')){ echo '<!--'.$template.'-->'; }
相关文章
thinkphp8模板定位方法
找到文件vendor/topthink/think-template/src/Template.php 后找到
private function parseTemplateFile(string $template):方法
大概在判断文件if (is_file($template)) {前,增加如下代码
if(env('APP_DEBUG')){ echo '<!--'.$template.'-->'; }