Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.04 KB

8.Module.md

File metadata and controls

53 lines (43 loc) · 1.04 KB

Module

1.添加模块步骤

  • 应用配置文件增加相应模块配置
; 多个模块,使用逗号分隔
application.modules = "Index,rest,backend"
  • 模块目录
+ public
  | - index.php // Application entry
  | + css
  | + js
  | + img
+ conf
  | - application.ini // Configure 
- application/
  - Bootstrap.php   // Bootstrap
  + controllers
     - Index.php // Default controller
  + views    
     |+ index   
        - index.phtml // View template for default controller
  - library
  - models  // Models
  - plugins // Plugins
  
  - modules    //模块
    + Rest
      + controllers
        - Index.php
      + views
        + index
           - index.phtml
    + Backend
      + controllers
        - Index.php
      + views
        + index
           - index.phtml