Extension for Kohana that renders HTML with added crumbs.
If your application is a Git repository:
git submodule add [email protected]:seyfer/breadcrumbs.git modules/breadcrumbs
git submodule update --init
Or clone the module separately:
cd modules
git clone [email protected]:seyfer/breadcrumbs.git modules/breadcrumbs
Edit application/config/breadcrumbs.php
for custom configuration.
Placed in a controller action:
//place in your base controller in after() method
Breadcrumbs::generate_from_request($this->request);
//you can also add own crumbs
Breadcrumbs::add(array($this->template->page_title, $this->request->url()));
//than you can render HTML and use it in template
$crumbs = Breadcrumbs::render();
$this->template->crumbs = $crumbs;
You can use i18n for generated from url crumbs translation.