PHP code example of nattreid / breadcrumbs

1. Go to this page and download the library: Download nattreid/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/ */

    

nattreid / breadcrumbs example snippets


/** @var \NAttreid\Breadcrumbs\IBreadcrumbFactory @inject */
public $breadcrumbFactory;

protected function createComponentBreadcrumbs() {
    $control = $this->breadcrumbFactory->create();
    $control->addLink('name', 'Link:action');
    return $control;
}