dev-master
9999999-devCakePHP 3.x plugin to handle Breadcrumb
MIT
The Requires
- php >=5.4.16
- cakephp/cakephp ~3.0
The Development Requires
plugin component cakephp helper breadcrumb
CakePHP 3.x plugin to handle Breadcrumb
CakePHP-breadcrumb is here to help you manage your breadcrumbs, (*2)
It is compatible with CakePHP 3 only., (*3)
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']); }
None, yet., (*6)
$this->Breadcrumb->push([ 'title' => 'Awesome title', 'url' => Router::url(['controller' => 'MyController', 'action' => 'MyAction']), ]);
The plugin automatically create a view variable with the breadcrumb array in the beforeRender event named $BreadCrumbCrumbs., (*7)
echo $this->Breadcrumb->display($BreadCrumbCrumbs);
CakePHP 3.x plugin to handle Breadcrumb
MIT
plugin component cakephp helper breadcrumb