fastadmin插件目录结构
目录结构:blog
├── application
│ └── admin
│ ├── controller
│ │ └── blog
│ │ ├── Category.php
│ │ ├── Comment.php
│ │ └── Post.php
│ ├── lang
│ │ └── zh-cn
│ │ └── blog
│ ├── model
│ │ ├── BlogCategory.php
│ │ ├── BlogComment.php
│ │ └── BlogPost.php
│ └── view
│ └── blog
│ ├── category
│ │ ├── add.html
│ │ ├── edit.html
│ │ └── index.html
│ ├── comment
│ │ ├── add.html
│ │ ├── edit.html
│ │ └── index.html
│ └── post
│ ├── add.html
│ ├── edit.html
│ └── index.html
├── assets
│ ├── css
│ │ ├── main.css
│ │ └── main.css.map
│ ├── fonts
│ ├── img
│ ├── js
│ ├── less
│ └── lib
│ ├── jquery.js
│ └── jquery.pjax.js
├── controller
│ ├── Ajax.php
│ └── Index.php
├── lang
│ └── zh-cn.php
├── model
│ ├── Category.php
│ ├── Comment.php
│ └── Post.php
├── public
│ └── assets
│ └── js
│ └── backend
│ └── blog
│ ├── category.js
│ ├── comment.js
│ └── post.js
├── view
│ ├── common
│ │ ├── commentlist.html
│ │ ├── postlist.html
│ │ └── sidebar.html
│ └── index
│ ├── archieve.html
│ ├── category.html
│ ├── index.html
│ └── post.html
├── Blog.php
├── bootstrap.js
├── LICENSE
├── config.php
├── info.ini
└── install.sql
目录介绍:
blog
├── application //此文件夹中所有文件会覆盖到根目录的/application文件夹
├── assets //此文件夹中所有文件会复制到/public/assets/addons/blog文件夹
├── controller //此文件夹为插件控制器目录
├── lang //此文件夹为插件语言包目录
├── model //此文件夹为插件模型目录
├── public //此文件夹中所有文件会覆盖到根目录的/public文件夹
├── view //此文件夹为插件视图目录
├── Blog.php //此文件为插件核心安装卸载控制器,必需存在
├── bootstrap.js //此文件为插件JS启动文件
├── LICENSE //版权文件
├── config.php //插件配置文件,我们在后台插件管理中点配置按钮时配置的文件,必需存在
├── info.ini //插件信息文件,用于保存插件基本信息,插件开启状态等,必需存在
└── install.sql //插件数据库安装文件,此文件仅在插件安装时会进行导入
转载自fastadmin官方,详细教程可查看原文地址:Fastadmin插件开发教程之目录文件介绍 - FastAdmin问答社区
页:
[1]