1 Star 0 Fork 0

bug胡 / o2o 糯米官网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.php 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
bug胡 提交于 2018-12-04 09:53 . o2o 糯米
<?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 [
// 生成应用公共文件
'__file__' => ['common.php', 'config.php', 'database.php'],
// 定义demo模块的自动生成 (按照实际定义的文件名生成)
'demo' => [
'__file__' => ['common.php'],
'__dir__' => ['behavior', 'controller', 'model', 'view'],
'controller' => ['Index', 'Test', 'UserType'],
'model' => ['User', 'UserType'],
'view' => ['index/index'],
],
// 其他更多的模块定义
'common' => [
'__dir__' => ['model'],
'model' => ['Category','Admin'],
],
'admin' => [
'__dir__' => ['controller','view'],
'controller' => ['Index'],
'view' => ['index/index'],
],
'api' => [
'__dir__' => ['controller','view'],
'controller' => ['Index','Image'],
],
'bis' => [
'__dir__' => ['controller', 'view'],
'controller' => ['Register','Login'],
]
];
PHP
1
https://gitee.com/huxiaole/o2o_glutinous_rice.git
git@gitee.com:huxiaole/o2o_glutinous_rice.git
huxiaole
o2o_glutinous_rice
o2o 糯米官网
master

搜索帮助