ACMS(Advanced Content Management System)是基于 Webman 框架開(kāi)發(fā)的內(nèi)容管理系統(tǒng)插件,支持文章、分類(lèi)、標(biāo)簽、評(píng)論等功能,適用于技術(shù)博客、資訊站點(diǎn)等內(nèi)容型網(wǎng)站。
ACMS 提供了一套完整的內(nèi)容管理解決方案,集成 Webman Admin 和 Webman User,支持權(quán)限管理、菜單配置及前后臺(tái)功能,適用于快速搭建內(nèi)容型網(wǎng)站。
composer require psr/container webman/blade jasongrimes/paginator
直接在admin插件中心安裝即可。這是最簡(jiǎn)單和方便的?。ㄍ扑])
下面是手動(dòng)安裝的方法:
解壓插件
將 plugin/acms.zip
解壓到 plugin/acms/
目錄,或直接將源碼放入 plugin/acms/
。
導(dǎo)入數(shù)據(jù)庫(kù)
執(zhí)行以下命令創(chuàng)建數(shù)據(jù)表和初始數(shù)據(jù):
php webman app-plugin:install acms
或手動(dòng)執(zhí)行 plugin/acms/install.sql
。
注冊(cè)路由
插件自帶路由文件 plugin/acms/config/route.php
,Webman 會(huì)自動(dòng)加載。
注冊(cè)菜單(可選)
插件自帶菜單配置 plugin/acms/config/menu.php
,安裝時(shí)自動(dòng)導(dǎo)入后臺(tái)菜單。
訪問(wèn)系統(tǒng)
/app/admin/acms/article/index
/app/acms
plugin/acms/
├── install.sql // 數(shù)據(jù)庫(kù)結(jié)構(gòu)及初始數(shù)據(jù)
├── readme.md // 插件說(shuō)明文檔
├── api/ // API 相關(guān)代碼
├── app/ // 控制器、模型、服務(wù)等
├── config/ // 路由、菜單等配置
├── public/ // 靜態(tài)資源
├── view/ // Blade 模板視圖
/app/acms
)/app/acms
/app/acms/article/{id}
/app/acms/category/{id}
/app/acms/tag/{id}
/app/acms/search
/app/acms/comment/add
/app/admin/acms
)/app/admin/acms/article/index
/app/admin/acms/category/index
/app/admin/acms/tag/index
/app/admin/acms/comment/index
如果未安裝user模塊,會(huì)報(bào)錯(cuò),那就先去安裝用戶(hù)模塊 http://wtbis.cn/app/view/user 選擇下載然后解壓到plugin/目錄,與admin同級(jí),然后手動(dòng)安裝用戶(hù)模塊,需要composer require webman/console
,手動(dòng)安裝:php webman app-plugin:install user
,
后臺(tái)菜單或頁(yè)面 404
plugin/acms/config/menu.php
和 plugin/acms/config/route.php
路徑正確,均為 /app/admin/acms/xxx
。runtime/
目錄下的緩存文件。路由沖突或無(wú)效
config/route.php
是否存在同名路由沖突。acms
,并與路由、菜單配置一致。數(shù)據(jù)庫(kù)連接失敗
config/database.php
數(shù)據(jù)庫(kù)配置,確保與實(shí)際環(huán)境一致。MySQL 8.0 以下版本兼容性
install.sql
中,將 utf8mb4_0900_ai_ci
替換為 utf8mb4_general_ci
。CSRF 保護(hù)
csrf_token
和 csrf_field
。autoload.php
和 functions.php
,提供簡(jiǎn)化的自定義函數(shù)替代。分頁(yè)支持
composer require jasongrimes/paginator
config/menu.php
自定義菜單和權(quán)限。view/
目錄下自定義 Blade 模板。歡迎提交 Issue 或 PR,提供建議或報(bào)告問(wèn)題。
github: https://github.com/dbx192/acms