定制 st3ph/cakephp-breadcrumb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

st3ph/cakephp-breadcrumb

Composer 安装命令:

composer require st3ph/cakephp-breadcrumb

包简介

CakePHP 3.x plugin to handle Breadcrumb

README 文档

README

===============================================

Software License Travis

CakePHP-breadcrumb is here to help you manage your breadcrumbs

It is compatible with CakePHP 3 only.

Installing with Composer

The package is available on Packagist. You can install it using this Composer command in the root of your project:

composer require st3ph/cakephp-breadcrumb
# In config/bootstrap.php
Plugin::load('Breadcrumb');
# In src/Controller/AppController.php (or any controller)
public function initialize()
{
    parent::initialize();
    $this->loadComponent('Breadcrumb.Breadcrumb');
}

Loading the Helper:

# In View/AppView.php
public function initialize()
{
    parent::initialize();
    $this->loadHelper('Breadcrumb', ['className' => 'Breadcrumb.Breadcrumb']);
}

Configuration

None, yet.

Usage

Controllers

$this->Breadcrumb->push([
    'title' => 'Awesome title',
    'url' => Router::url(['controller' => 'MyController', 'action' => 'MyAction']),
]);

Views

The plugin automatically create a view variable with the breadcrumb array in the beforeRender event named $BreadCrumbCrumbs.

echo $this->Breadcrumb->display($BreadCrumbCrumbs);

统计信息

  • 总下载量: 860
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-21