2017 © Pedro PelĂĄez
 

cakephp-plugin cakephp-breadcrumb

CakePHP 3.x plugin to handle Breadcrumb

image

st3ph/cakephp-breadcrumb

CakePHP 3.x plugin to handle Breadcrumb

  • Saturday, August 27, 2016
  • by st3ph
  • Repository
  • 1 Watchers
  • 1 Stars
  • 254 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

# Breadcrumb plugin for CakePHP 3.x

Software License Travis, (*1)

CakePHP-breadcrumb is here to help you manage your breadcrumbs, (*2)

It is compatible with CakePHP 3 only., (*3)

Installing with Composer

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

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:, (*5)

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

Configuration

None, yet., (*6)

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., (*7)

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

The Versions

27/08 2016

dev-master

9999999-dev

CakePHP 3.x plugin to handle Breadcrumb

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin component cakephp helper breadcrumb