PHP code example of n2ref / coreui-breadcrumb
1. Go to this page and download the library: Download n2ref/coreui-breadcrumb 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/ */
n2ref / coreui-breadcrumb example snippets
$breadcrumb = new \CoreUI\Breadcrumb('id');
$breadcrumb->setDivider('>');
$breadcrumb->addItem('Page title 1', '/page-url-1');
$breadcrumb->addItem('Page title 2', '/page-url-2');
$breadcrumb->addItem('Current page title');
echo json_encode($breadcrumb->toArray());