聯系官方銷售客服
1835022288
028-61286886
復制在admin傳建的數據控制器到member后左邊菜單沒有了
<?php namespace Phpcmf\Controllers; /* * * * 本Demo的語法參考: http://help.xunruicms.com/445.html * * */ class Site extends \Phpcmf\Table { public function __construct() { parent::__construct(); // 表單顯示名稱 $this->name = dr_lang('會員網站'); // 模板前綴(避免混淆) $this->tpl_prefix = 'site_'; // 采用ajax列表請求 $this->is_ajax_list = false; // 用于表儲存的字段,后臺可修改的表字段,設置字段類別參考:http://help.xunruicms.com/1138.html $field = array ( );
復制后的文件地址/dayrui/App/Member/Controllers/Site.php
我創建的數據表dr_member_site
回復@外聘專員-GOLANG工作室
// 把公共變量傳入模板
\Phpcmf\Service::V()->assign([
// 搜索字段
'field' => $field,
'is_time_where' => $this->init['date_field'],
// 后臺的菜單
'menu' => \Phpcmf\Service::M('auth')->_admin_menu(
[
$this->name => [APP_DIR.'/'.\Phpcmf\Service::L('Router')->class.'/index', 'fa fa-code'],
'添加' => [APP_DIR.'/'.\Phpcmf\Service::L('Router')->class.'/add', 'fa fa-plus'],
'修改' => ['hide:'.APP_DIR.'/'.\Phpcmf\Service::L('Router')->class.'/edit', 'fa fa-edit'],
])
]);
刪除這段就可以了,這里的menu 是可以自定義的碼