zoukankan      html  css  js  c++  java
  • Tp5中配置多模块开发

    参考地址:https://blog.csdn.net/qq_25771201/article/details/83114517

    1:配置项目根目录下的build.php文件该文件内容如下:
    <

    <?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'],

    // 定义api模块的自动生成 (按照实际定义的文件名生成)
    'api' => [
    '__file__' => ['common.php','config.php','database.php'], // 生成的配置文件
    '__dir__' => ['behavior', 'controller', 'model', 'view'], // 生成文件夹
    'controller' => [], // 生成控制器
    'model' => [], // 生成模型层
    'view' => [], // 生成视图
    ],
    // 其他更多的模块定义
    ];
     配置好上面的文件后在项目的根目录执行命令
    php think build --config build.php ----> 用于生成模块
    ————————————————
    版权声明:本文为CSDN博主「仰望星空下的自己」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/qq_25771201/article/details/83114517

  • 相关阅读:
    线性时间选择
    ios理解 Pro Mutlithreading and Memory Management for iOS and OS X with ARC, Grand Central Dispatch, and Blocks
    ef
    c# 采集 获取网页数据内容 一会超时的问题
    entity4.1
    逐渐约束
    entity4.1
    ObjectContext.Refresh
    使用内存表
    MVCdropdownlist
  • 原文地址:https://www.cnblogs.com/gzyx1988/p/14768084.html
Copyright © 2011-2022 走看看