简介 目录 评价 推荐
  • 木易涛童鞋 2016-06-25
    //模板引擎类--获取模板源文件;第1个参数(模板源文件的名称),第2个参数(默认的模板文件扩展名),也可以设置为私有成员 public function getSourceTemplate($templateName,$ext='.html'){ $this->currentTemp = $templateName; //把模板源文件的完整路径拼接出来 $sourceFilename = $this->templateDir.$this->currentTemp.$ext; //把模板源文件中的html代码赋值给outputHtml私有成员 $this->outputHtml = file_get_contents($sourceFilename); }
    截图
    0赞 · 0采集
  • 林静听蝉 2015-09-24
    //模板引擎类--获取模板源文件;第1个参数(模板源文件的名称),第2个参数(默认的模板文件扩展名),也可以设置为私有成员 public function getSourceTemplate($templateName,$ext='.html'){ $this->currentTemp = $templateName; //把模板源文件的完整路径拼接出来 $sourceFilename = $this->templateDir.$this->currentTemp.$ext; //把模板源文件中的html代码赋值给outputHtml私有成员 $this->outputHtml = file_get_contents($sourceFilename); }
    截图
    0赞 · 3采集
  • webwwb 2015-06-17
    public function gettSourceTemplate($templateName,$ext = '.html'){ $this->currentTemp = $templateName; $sourceFilename = $this->templateDir.$this->currentTemp. }
    0赞 · 0采集
数据加载中...
开始学习 免费