模板文件目录更改
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// SentCMS常量定义
|
// SentCMS常量定义
|
||||||
define('sent_version', '4.0.0');
|
define('sent_version', '4.0.0');
|
||||||
define('sent_path_addons', __DIR__ . '/../addons' . DS);
|
define('sent_path_addons', __DIR__ . '/../addons/');
|
||||||
|
|
||||||
//字符串解密加密
|
//字符串解密加密
|
||||||
function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) {
|
function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) {
|
||||||
|
|||||||
Generated
+1044
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -24,7 +24,7 @@ return [
|
|||||||
// 驱动方式
|
// 驱动方式
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
// 缓存保存目录
|
// 缓存保存目录
|
||||||
'path' => '',
|
'path' => app()->getRuntimePath() . 'cache',
|
||||||
// 缓存前缀
|
// 缓存前缀
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
// 缓存有效期 0表示永久缓存
|
// 缓存有效期 0表示永久缓存
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ return [
|
|||||||
// 数据库编码默认采用utf8
|
// 数据库编码默认采用utf8
|
||||||
'charset' => Env::get('database.charset', 'utf8'),
|
'charset' => Env::get('database.charset', 'utf8'),
|
||||||
// 数据库表前缀
|
// 数据库表前缀
|
||||||
'prefix' => Env::get('database.prefix', 'sent_'),
|
'prefix' => Env::get('database.prefix', ''),
|
||||||
// 数据库调试模式
|
// 数据库调试模式
|
||||||
'debug' => Env::get('database.debug', true),
|
'debug' => Env::get('database.debug', true),
|
||||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||||
@@ -58,7 +58,7 @@ return [
|
|||||||
// 指定从服务器序号
|
// 指定从服务器序号
|
||||||
'slave_no' => '',
|
'slave_no' => '',
|
||||||
// 是否严格检查字段是否存在
|
// 是否严格检查字段是否存在
|
||||||
'fields_strict' => false,
|
'fields_strict' => true,
|
||||||
// 是否需要进行SQL性能分析
|
// 是否需要进行SQL性能分析
|
||||||
'sql_explain' => false,
|
'sql_explain' => false,
|
||||||
// 是否需要断线重连
|
// 是否需要断线重连
|
||||||
|
|||||||
+3
-1
@@ -31,7 +31,7 @@ return [
|
|||||||
// 日志记录方式
|
// 日志记录方式
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
// 日志保存目录
|
// 日志保存目录
|
||||||
'path' => '',
|
'path' => app()->getRuntimePath() . 'log',
|
||||||
// 单文件日志写入
|
// 单文件日志写入
|
||||||
'single' => false,
|
'single' => false,
|
||||||
// 独立日志级别
|
// 独立日志级别
|
||||||
@@ -46,6 +46,8 @@ return [
|
|||||||
'close' => false,
|
'close' => false,
|
||||||
// 日志输出格式化
|
// 日志输出格式化
|
||||||
'format' => '[%s][%s] %s',
|
'format' => '[%s][%s] %s',
|
||||||
|
// 是否实时写入
|
||||||
|
'realtime_write' => false,
|
||||||
],
|
],
|
||||||
// 其它日志通道配置
|
// 其它日志通道配置
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ return [
|
|||||||
'type' => 'Think',
|
'type' => 'Think',
|
||||||
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法
|
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法
|
||||||
'auto_rule' => 1,
|
'auto_rule' => 1,
|
||||||
|
// 模板基础路径
|
||||||
|
'view_base' => '',
|
||||||
// 模板路径
|
// 模板路径
|
||||||
'view_path' => '',
|
'view_path' => '',
|
||||||
// 模板后缀
|
// 模板后缀
|
||||||
|
|||||||
@@ -15,4 +15,6 @@
|
|||||||
return [
|
return [
|
||||||
// 内置Html 支持扩展
|
// 内置Html 支持扩展
|
||||||
'type' => 'Html',
|
'type' => 'Html',
|
||||||
|
// 读取的日志通道名
|
||||||
|
'channel' => '',
|
||||||
];
|
];
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
如果不使用模板,可以删除该目录
|
||||||
Reference in New Issue
Block a user