tp6更新到最新版本

目录结构调整
This commit is contained in:
2019-09-12 23:57:10 +08:00
parent db04a9c4e5
commit 0b0d659c5e
31 changed files with 656 additions and 635 deletions

8
config/middleware.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
//中间件配置
return [
//别名或分组
'alias' => [],
//优先级设置,此数组中的中间件会按照数组中的顺序优先执行
'priority' => [],
];

View File

@@ -5,13 +5,15 @@
return [
// session name
'name' => '',
'name' => 'PHPSESSID',
// SESSION_ID的提交变量,解决flash上传跨域
'var_session_id' => '',
// 驱动方式 支持file redis memcache memcached
// 驱动方式 支持file cache
'type' => 'file',
// 存储连接标识 当type使用cache的时候有效
'store' => null,
// 过期时间
'expire' => 0,
'expire' => 1440,
// 前缀
'prefix' => '',
];

View File

@@ -5,23 +5,23 @@
return [
// 模板引擎类型使用Think
'type' => 'Think',
'type' => 'Think',
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法
'auto_rule' => 1,
// 模板基础路径
'view_base' => '',
'auto_rule' => 1,
// 模板目录名
'view_dir_name' => 'view',
// 模板路径
'view_path' => '',
'view_path' => '',
// 模板后缀
'view_suffix' => 'html',
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DIRECTORY_SEPARATOR,
'view_depr' => DIRECTORY_SEPARATOR,
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
'tpl_end' => '}',
'tpl_end' => '}',
// 标签库标签开始标记
'taglib_begin' => '{',
'taglib_begin' => '{',
// 标签库标签结束标记
'taglib_end' => '}',
'taglib_end' => '}',
];