You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.php 715B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * 创建模块配置
  4. * php think build model_name
  5. */
  6. return [
  7. // 需要自动创建的文件
  8. '__file__' => ['.htaccess','ExecptionHandle.php'],
  9. // 需要自动创建的目录
  10. '__dir__' => ['controller/v1','config','lang','validates/login/','route'],
  11. // 需要自动控制器类
  12. 'controller' => ['Index'],
  13. // 需要自动创建的表单验证
  14. 'validates' => ['Index'],
  15. // 需要自动创建的路由
  16. 'route' => ['route'],
  17. // 需要自动创建配置文件
  18. 'config' => ['route'],
  19. // 需要自动创建的多语言配置文件
  20. 'lang' => ['zh-CN','en-US'],
  21. // 需要自动创建的模板
  22. // 'view' => ['index/index'],
  23. ];