商派BBC系统——会员中心左侧标签嵌套右侧页面方法
2017-03-10 14:54
274 查看
商派BBC系统——会员中心左侧标签嵌套右侧页面方法
新增左侧菜单标签方法:修改文件 config/usermenu.php
return array( ..... ..... ....., array( 'label' => '测试', 'items' => array( array( 'label' => '测试-index', 'action'=>'topc_ctl_test@index' // 在路由文件必须添加此方法路由信息,否则报错 ), array('label' => '测试-add','action'=>'topc_ctl_test@add'), ), ), );
bootstrap/routes.php
..... ..... ...... /*测试*/ route::group(array(), function() { route::get('member-test-index.html', [ 'as' => 'what', 'uses' => 'topc_ctl_test@index' ]); route::get('member-test-add.html', [ 'as' => 'what', 'uses' => 'topc_ctl_test@add' ]); });
效果图
调用页面方式
$this->action_view //此参数的作用是html页面文件名 最终输出页面情调用 $this->output();
custom/topc/controller/test.php
class topc_ctl_test extends topc_ctl_member { public function index() { $pagedata = array(); $this->action_view = "test/index.html"; // 使用$this->output()函数必须继承topc_ctl_member return $this->output($pagedata); } public function add() { } }
html页面
custom/topc/view/member/test/index.html
Index Page
效果图
相关文章推荐
- 商派BBC系统——前台输入字符串转换方法
- asp.net form标签嵌套 提交页面的解决方法
- css --左侧菜单a标签 改变右侧ifame引用的页面
- 关于ubuntu16.4 中安装最新的eclipse或者是STS出现页面特卡,且新建项目没有提示,preference选项中点击左侧标签右侧没反应的解决办法,参照google, 排版不太好,希望对一些小伙伴有所帮助
- 商派BBC系统——商家管理管理中心的菜单配置
- 网页设计,本页面内左侧菜单导航右侧显示内容简单实现方法
- Struts2下进行html转义的方法(解决页面输出html标签问题)
- HTML a标签的连接让浏览器在新的标签页面打开的方法
- 页面设计中a标签内嵌套div标签的高度问题
- HTML a标签的连接让浏览器在新的标签页面打开的方法
- Asp.Net : 捕捉和记录网站中出现的所有未处理错误,抛出详细的页面来源和访问ip,调用的接口方法及异常实例(记事本日志,系统日志及数据库日志)
- 设置退出系统再点后退就显示页面过期的方法
- 获取jsp页面标签value的三种方法
- 在SharePoint Server 2010 的管理中心,点击“配置管理帐户”,就会在ManagedAccounts.aspx页面出现,“对象不存在”的出错信息应对方法!!!!
- 会员管理系统(一)--页面登陆与注册
- Android3.1打开系统设置页面的正确方法
- 用ASP.NET做项目,本本上的系统是XP,网上下载了IIS6,安装完后出现HTTP500问题,解决之.接着出现了浏览页面时跳出登陆框让输用户名及密码,GOOGLE了一下,原来是权限不够,解决方法
- 转:MSDN Visual系列:MOSS企业级搜索之一——在搜索中心里创建自定义搜索页面和标签选项卡
- DEDECMS系统后台会员功能漏洞解决方法
- 新闻系统 29-32:带边框的圆角框制作(制作后台登陆页面) 母版页嵌套/二级母版页