PHP code example of gearmagicru / gm-wd-breadcrumbs

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

    

gearmagicru / gm-wd-breadcrumbs example snippets


echo $this->widget('gm.wd.breadcrumbs', [
     'links' => [
         [
             'label' => 'Категория статьи',
             'url'   => 'post-category'
         ],
         [
              'label' => 'Статья'
          ]
     ]
 ]);
// или
echo $this->widget('gm.wd.breadcrumbs:main', ['ui' => 'bootstrap5'])

$breadcrumbs = Gm::$app->widgets->get('gm.wd.breadcrumbs', ['ui' => 'bootstrap5']);
$breadcrumbs->run();

echo $this->widget('gm.wd.breadcrumbs', ['ui' => 'bootstrap5']);

use Gm\Widget\Breadcrumbs\Widget as Breadcrumbs;
echo Breadcrumbs::widget(['ui' => 'bootstrap5']);