Skip to content

Commit

Permalink
添加缺失文件
Browse files Browse the repository at this point in the history
  • Loading branch information
caiweiming committed Feb 24, 2019
1 parent 367aed6 commit 021dbd7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/common/builder/table/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1585,17 +1585,16 @@ public function setExtraHtml($extra_html = '', $tag = '')
* @param string $template 模板文件名
* @param string $tag 标记
* @param array $vars 模板输出变量
* @param array $replace 替换内容
* @author 蔡伟明 <314013107@qq.com>
* @return $this
*/
public function setExtraHtmlFile($template = '', $tag = '', $vars = [], $replace = [])
public function setExtraHtmlFile($template = '', $tag = '', $vars = [])
{
$template = $template == '' ? $this->_action : $template;
$file = Env::get('app_path'). $this->_module.'/view/admin/'.$this->_controller.'/'.$template.'.html';
if (file_exists($file)) {
$content = file_get_contents($file);
$content = $this->view->display($content, $vars, $replace);
$content = $this->view->display($content, $vars);
} else {
$content = '模板文件不存在:'.$file;
}
Expand Down
14 changes: 14 additions & 0 deletions application/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用容器绑定定义
return [
];

0 comments on commit 021dbd7

Please sign in to comment.