Home > Backend Development > PHP Tutorial > 后盾增加一个左侧列表菜单menu菜单的方法

后盾增加一个左侧列表菜单menu菜单的方法

WBOY
Release: 2016-06-13 12:21:09
Original
1002 people have browsed it

后台增加一个左侧列表菜单menu菜单的方法

Ecshop 后台增加一个左侧列表菜单menu菜单需要修改三个文件:
/admin/includes/inc_menu.php
/admin/includes/inc_priv.php
/languages/zh_cn/admin/common.php

 

1.在/admin/includes/inc_menu.php中增加
$modules['03_promotion']['16_progoods_list']        = 'progoods.php?act=list';

前面03_promotion是比如商品管理,促销管理这样的一级菜单,后面的'16_progoods_list'是下面的二级菜单,这个'16_progoods_list'我们会在common.php里面用到,这是在模板里面用的,

 

2.所以,接下来要在/languages/zh_cn/admin/common.php中添加一个

$_LANG['16_progoods_list'] = '热门促销';

 

3.在权限管理/admin/includes/inc_priv.php中添加一个权限
$purview['16_progoods_list']       = 'progoods_manage';  

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template