查看: 770|回复: 0

fastadmin插件目录结构

[复制链接]

748

主题

39

回帖

3907

积分

管理员

总舵主

积分
3907
QQ
发表于 2023-12-25 01:53:01 | 显示全部楼层 |阅读模式
目录结构:
  1. blog
  2. ├── application
  3. │   └── admin
  4. │       ├── controller
  5. │       │   └── blog
  6. │       │       ├── Category.php
  7. │       │       ├── Comment.php
  8. │       │       └── Post.php
  9. │       ├── lang
  10. │       │   └── zh-cn
  11. │       │       └── blog
  12. │       ├── model
  13. │       │   ├── BlogCategory.php
  14. │       │   ├── BlogComment.php
  15. │       │   └── BlogPost.php
  16. │       └── view
  17. │           └── blog
  18. │               ├── category
  19. │               │   ├── add.html
  20. │               │   ├── edit.html
  21. │               │   └── index.html
  22. │               ├── comment
  23. │               │   ├── add.html
  24. │               │   ├── edit.html
  25. │               │   └── index.html
  26. │               └── post
  27. │                   ├── add.html
  28. │                   ├── edit.html
  29. │                   └── index.html
  30. ├── assets
  31. │   ├── css
  32. │   │   ├── main.css
  33. │   │   └── main.css.map
  34. │   ├── fonts
  35. │   ├── img
  36. │   ├── js
  37. │   ├── less
  38. │   └── lib
  39. │       ├── jquery.js
  40. │       └── jquery.pjax.js
  41. ├── controller
  42. │   ├── Ajax.php
  43. │   └── Index.php
  44. ├── lang
  45. │   └── zh-cn.php
  46. ├── model
  47. │   ├── Category.php
  48. │   ├── Comment.php
  49. │   └── Post.php
  50. ├── public
  51. │   └── assets
  52. │       └── js
  53. │           └── backend
  54. │               └── blog
  55. │                   ├── category.js
  56. │                   ├── comment.js
  57. │                   └── post.js
  58. ├── view
  59. │   ├── common
  60. │   │   ├── commentlist.html
  61. │   │   ├── postlist.html
  62. │   │   └── sidebar.html
  63. │   └── index
  64. │       ├── archieve.html
  65. │       ├── category.html
  66. │       ├── index.html
  67. │       └── post.html
  68. ├── Blog.php
  69. ├── bootstrap.js
  70. ├── LICENSE
  71. ├── config.php
  72. ├── info.ini
  73. └── install.sql
复制代码

目录介绍:
  1. blog
  2. ├── application    //此文件夹中所有文件会覆盖到根目录的/application文件夹
  3. ├── assets        //此文件夹中所有文件会复制到/public/assets/addons/blog文件夹
  4. ├── controller    //此文件夹为插件控制器目录
  5. ├── lang            //此文件夹为插件语言包目录
  6. ├── model            //此文件夹为插件模型目录
  7. ├── public        //此文件夹中所有文件会覆盖到根目录的/public文件夹
  8. ├── view            //此文件夹为插件视图目录
  9. ├── Blog.php        //此文件为插件核心安装卸载控制器,必需存在
  10. ├── bootstrap.js    //此文件为插件JS启动文件
  11. ├── LICENSE        //版权文件
  12. ├── config.php    //插件配置文件,我们在后台插件管理中点配置按钮时配置的文件,必需存在
  13. ├── info.ini        //插件信息文件,用于保存插件基本信息,插件开启状态等,必需存在
  14. └── install.sql    //插件数据库安装文件,此文件仅在插件安装时会进行导入
复制代码

转载自fastadmin官方,详细教程可查看原文地址:Fastadmin插件开发教程之目录文件介绍 - FastAdmin问答社区
道不同,不相为谋!理想要有,万一实现了呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:2513533699@qq.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|鲁ICP备19000917号|鲁公网安备37078302000320号

在本版发帖
关注公众号
QQ客服返回顶部