Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 894 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 894 Bytes

Breadcrumb Library for CodeIgniter2+

This library will help you generate breadcrumbs, the list of horizontal trailing links that are often displayed on sites. The methods are simple and at the moment, the library is at a basic level.

Requirements

  1. CodeIgniter 2+

Usage Example

// load library
$this->load->library('breadcrumb');

// build up
$this->breadcrumb->clear();
$this->breadcrumb->add_crumb('Home', '/'); // this will be a link
$this->breadcrumb->add_crumb('Food', '/food'); // this will be a link
$this->breadcrumb->add_crumb('Chocolate'); // this won't be linked and will just be text

// change link
$this->breadcrumb->change_link('<'); // you can change what joins the crumbs

// output
echo($this->breadcrumb->output());

Contributing

Please do feel free to fork, modify, add, fix and put in a pull request