商派BBC系统——商家管理管理中心的菜单配置
2017-03-09 13:52
295 查看
商派BBC系统——商家管理管理中心的菜单配置
1、配置文件目录 ./config/shop.php在return array(…….);里面添加商家管理管理中心的菜单配置代码
return array( ...... ...... 其他菜单配置信息 ...... ......, 'test' => array( // test -> 你打算在topshop/controller/目录下创建的文件夹 'label' => '测试', // 在商户后台顶部导航菜单显示的名称 'display' => true, // 是否显示 'action' => 'topshop_ctl_test_index@index', // 链接地址(填写menu数组下的第一个菜单信息action对应的值) 'icon' => 'glyphicon glyphicon-magnet', // 菜单图片 参考链接http://getbootstrap.com/components/ 'menu' => array( // 子菜单 array( 'label'=>'测试-Index', // 显示的菜单名称 'display'=>true, // 是否显示 'action'=>'topshop_ctl_test_index@index', // 链接地址 topshop_ctl_test_index 对应topshop/controller/test/index.php 文件 class topshop_ctl_test_index extends topshop_controller{public function index(){}} 'url'=>'test/test_index.html', // 浏览器显示的链接地址 'method'=>'get' // 请求方式 ), array('label'=>'测试-Add','display'=>true,'as'=>'topshop.test.add','action'=>'topshop_ctl_test_index@add','url'=>'test/test_add.html','method'=>'get'), array('label'=>'测试-Save','display'=>false,'as'=>'topshop.test.save','action'=>'topshop_ctl_test_index@save','url'=>'test/test_save.html','method'=>'post'), ) ), );
2、控制器文件地址(这里在二开目录做demo)
./custom/topshop/controller/test/index.php
class topshop_ctl_test_index extends topshop_controller{ public function index() { $pagedata = array(); return $this->page('topshop/test/index.html', $pagedata); } public function add() { $pagedata = array(); return $this->page('topshop/test/add.html', $pagedata); } public function save() { $var = input::get(); var_dump($var); } }
3、模版文件目录
./custom/topshop/view/test/index.html
Index Page
./custom/topshop/view/test/add.html
Add Page<br /> <form action="<{url action=topshop_ctl_test_index@save}>" method="post" class="form-horizontal" role="form"> user:<input type="text" name="user"> <input type="submit" name="save" value="save"> </form>
参考图片
Index页面
Add页面
Save页面
大家试一次,就会明白的。
提示:
1.只有下边有子菜单的导航菜单才会显示出来
相关文章推荐
- 商派BBC系统——会员中心左侧标签嵌套右侧页面方法
- 使用注册表创建统一的呼叫中心配置管理系统
- Spring Boot + Spring Cloud 实现权限管理系统 后端篇(二十三):配置中心(Config、Bus)
- 基于Windows平台中的系统配置、管理与维护
- 中心药库管理系统 杀毒软件
- 湖大素质拓展中心管理系统Beta 1下载
- 帮助中心管理系统
- Bug跟踪管理系统Mantis配置手册
- 系统管理-第4部分 系统配置
- 系统管理-第4部分 系统配置
- 中心药库管理系统 v6.85 是什么
- 基于数据库的站点导航提供程序,适合一般应用系统的管理后台的快速配置
- 客户关系管理系统(CRM)与呼叫中心(CALL CENTER)
- c#超级管理系统配置文件
- 利用 Enterprise Library 改善你的应用系统2——应用系统的配置管理
- 在嵌入式Linux 系统中实现基于Web 的配置管理
- 文件和打印系统的配置与管理
- 怎样配置和管理WinXP/2003系统服务
- Debian Linux 系统配置与管理
- 文件系统管理 之 Fedora Core 4.0 HAL配置即插即用移动存储(USB及1394)的实践