nattreid/breadcrumbs

Breadcrumbs for Nette Framework

1.1.1 2018-02-20 09:02 UTC

README

Nastavení v config.neon

Zaregistrujte továrnu

services:
    - NAttreid\Breadcrumbs\IBreadcrumbFactory

Použití

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

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