Home  >  Article  >  Backend Development  >  How to add a left list menu menu in the background

How to add a left list menu menu in the background

WBOY
WBOYOriginal
2016-08-08 09:23:101150browse

To add a left list menu menu in the Ecshop background, three files need to be modified:
/admin/includes/inc_menu.php
/admin/includes/inc_priv.php
/languages/zh_cn/admin/common.php

1. Add
$modules['03_promotion']['16_progoods_list'] in /admin/includes/inc_menu.php = 'progoods.php?act=list';

The previous 03_promotion is a level such as product management and promotion management Menu, the '16_progoods_list' at the back is the secondary menu below. We will use this '16_progoods_list' in common.php, which is used in the template,

2. So, next we need to use /languages/zh_cn Add a

$_LANG['16_progoods_list'] = 'Popular Promotion' in /admin/common.php;

3. Add a permission in permission management/admin/includes/inc_priv.php
$purview['16_progoods_list' ] = 'progoods_manage';

The above introduces the method of adding a left list menu menu in the background, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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