Skip to content

Simple Breadcrumb navigation module for Kohana 3.0

Notifications You must be signed in to change notification settings

tapvt/breadcrumbs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breadcrumbs

Extension for Kohana that renders HTML with added crumbs.

Installation

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

Configuration

Edit application/config/breadcrumbs.php for custom configuration.

Usage

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.

About

Simple Breadcrumb navigation module for Kohana 3.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%