迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
請問模塊開發,用戶中心模塊模表,這個導航怎么定義的,想增加或刪除該怎么,沒找到文檔呢
http://www.zbshanke.com/wenda/24234.html
看我的代碼
參考文檔:《重寫內容Content類》
我們以Demo模塊為例,新建App/Demo/Models/Content.php
<?php namespace Phpcmf\Model\Demo; // 模塊內容模型類 class Content extends \Phpcmf\Model\Content { // 用戶中心菜單 public function module_menu() { return [ 'list' => [ 'name' => dr_lang('內容管理'), 'icon' => dr_icon(\Phpcmf\Service::C()->module['icon']), 'url' => \Phpcmf\Service::L('router')->member_url($this->dirname.'/home/index'), ], 'verify' => [ 'name' => dr_lang('審核管理'), 'icon' => 'fa fa-edit', 'url' => \Phpcmf\Service::L('router')->member_url($this->dirname.'/verify/index'), ], 'draft' => [ 'name' => dr_lang('草稿箱'), 'icon' => 'fa fa-pencil', 'url' => \Phpcmf\Service::L('router')->member_url($this->dirname.'/draft/index'), ], 'add' => [ 'name' => dr_lang('發布內容'), 'icon' => 'fa fa-plus', 'url' => \Phpcmf\Service::L('router')->member_url($this->dirname.'/home/add'), ], ]; } }
在這個新建的函數體修改就行,注意php語法
http://www.zbshanke.com/wenda/24234.html
看我的代碼
參考文檔:《重寫內容Content類》
我們以Demo模塊為例,新建App/Demo/Models/Content.php
在這個新建的函數體修改就行,注意php語法