This plugin provides a way to create BreadCrumbs with links, manual adding items or parsing XML file.
To install with Composer, simply require the latest version of this package.
composer require lopescte/adianti-plugins
Make sure that the autoload file from Composer is loaded.
// somewhere early in your project's loading, require the Composer autoloader
// see: http://getcomposer.org/doc/00-intro.md
require 'vendor/autoload.php';
Easy to use in your php files or classes, as below:
use TBreadCrumbWithLink\TBreadCrumbWithLink;;
$breadcrumb = new TBreadCrumbWithLink;
$breadcrumb->addItem('You are here:',NULL,TRUE);
$breadcrumb->addItem('Home', 'MyHomeClassName',FALSE);
$breadcrumb->renderFromXML('MyMenu.xml', __CLASS__);
The MIT License (MIT). Please see License File for more information.