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

andrew-s/codeigniter-breadcrumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Breadcrumb Library for CodeIgniter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages