首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > TP3.2生成静态文件

TP3.2生成静态文件

  • 资源大小:1.32 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: thinkphp 静态文件,php

资 源 简 介

protected function buildHtml($htmlfile="",$htmlpath="",$templateFile="") { $content = $this->fetch($templateFile); $htmlpath = !empty($htmlpath) ? $htmlpath : HTML_PATH."/"; // 项目目录下的html目录 $htmlfile = $htmlpath.$htmlfile.".html"; $dir = dirname($htmlfile); if(!is_dir($dir)){ mkdir($dir,0777,true); } if(file_put_contents($htmlfile,$content) === false) { return false; } else { return true; } }

文 件 列 表

IndexController.class.php
VIP VIP
0.198300s