1. Go to this page and download the library: Download creitive/breadcrumbs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
creitive / breadcrumbs example snippets
$breadcrumbs = new Creitive\Breadcrumbs\Breadcrumbs;
$breadcrumbs->addCrumb('Home', '/');
echo $breadcrumbs->render();
$stringClasses = 'class1 class2 class3';
$arrayClasses = array('class4', 'class5');
$breadcrumbs->addCssClasses($stringClasses);
$breadcrumbs->addCssClasses($arrayClasses);
// All five classes will now be applied to the containing `<ul>` element.
public function __construct()
{
parent::__construct();
$this->breadcrumbs = new \Creitive\Breadcrumbs\Breadcrumbs;
$this->breadcrumbs->addCrumb('Home', '/');
}
public function __construct()
{
parent::__construct();
$this->breadcrumbs->addCrumb('Stores', 'stores');
}
public function __construct()
{
parent::__construct();
$this->breadcrumbs->removeAll();
$this->breadcrumbs->addCrumb('Home', '/admin');
}