目录结构更新,增加composer支持
This commit is contained in:
18
application/extra/captcha.php
Normal file
18
application/extra/captcha.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 验证码字体大小
|
||||
'fontSize' => 25,
|
||||
// 验证码位数
|
||||
'length' => 3,
|
||||
// 关闭验证码杂点
|
||||
'useNoise' => false,
|
||||
'useZh' => true
|
||||
];
|
||||
28
application/extra/fieldType.php
Normal file
28
application/extra/fieldType.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
return [
|
||||
'text' => ['title' => '单行文本', 'type' => 'varchar'],
|
||||
'string' => ['title' => '字符串', 'type' => 'int'],
|
||||
'password' => ['title' => '密码', 'type' => 'varchar'],
|
||||
'textarea' => ['title' => '文本框', 'type' => 'text'],
|
||||
'bool' => ['title' => '布尔型', 'type' => 'int'],
|
||||
'select' => ['title' => '选择', 'type' => 'varchar'],
|
||||
'num' => ['title' => '数字', 'type' => 'int'],
|
||||
'decimal' => ['title' => '金额', 'type' => 'decimal'],
|
||||
'tags' => ['title' => '标签', 'type' => 'varchar'],
|
||||
'datetime' => ['title' => '时间控件', 'type' => 'int'],
|
||||
'date' => ['title' => '日期控件', 'type' => 'varchar'],
|
||||
'editor' => ['title' => '编辑器', 'type' => 'text'],
|
||||
'bind' => ['title' => '模型绑定', 'type' => 'int'],
|
||||
'image' => ['title' => '图片上传', 'type' => 'int'],
|
||||
'images' => ['title' => '多图上传', 'type' => 'varchar'],
|
||||
'attach' => ['title' => '文件上传', 'type' => 'varchar'],
|
||||
];
|
||||
Reference in New Issue
Block a user