Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/domProjects/CI-Breadcrumb
Breadcrumb library for CodeIgniter 3.x.x
https://github.com/domProjects/CI-Breadcrumb
breadcrumb codeigniter codeigniter-library codeigniter3 libraries menu-navigation
Last synced: 3 months ago
JSON representation
Breadcrumb library for CodeIgniter 3.x.x
- Host: GitHub
- URL: https://github.com/domProjects/CI-Breadcrumb
- Owner: domProjects
- License: mit
- Created: 2019-02-23T11:09:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T17:46:22.000Z (over 5 years ago)
- Last Synced: 2024-02-15T10:37:53.297Z (9 months ago)
- Topics: breadcrumb, codeigniter, codeigniter-library, codeigniter3, libraries, menu-navigation
- Language: PHP
- Homepage: https://demo.domprojects.com/ci-breadcrumb/
- Size: 8.79 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codeigniter - CI-Breadcrumb - Breadcrumb library for CodeIgniter 3.x.x with demo (Libraries)
README
# CI-Breadcrumb
Breadcrumb library for CodeIgniter 3.x.x## Demo
You can see the demo that online at this address: https://demo.domprojects.com/ci-breadcrumb/![Breadcrumb](https://demo.domprojects.com/ci-breadcrumb/screenshot/screenshot.png)
## Installation
### CodeIgniter
1. Download [CodeIgniter 3.x.x](https://codeigniter.com/download)
1. Unpack the archive
1. Copy the contents of the uncompressed archive to the root of your site or copy the directory of the uncompressed archive to the root of your site```
./
|_ application
|_ system
|_ index.php
```
OR
```
./
|_ CI-Breadcrumb
|_ application
|_ system
|_ index.php
```
### Librairie CI-Breadcrumb
1. Download the archive
1. Unpack the archive
1. Copy the contents of the uncompressed archive to your site```
./
|_ application
|_ controllers
|_ Test_breadcrumb.php
|_ libraries
|_ Breadcrumb.php
|_ views
|_ test_breadcrumb.php
|_ system
|_ index.php
```
OR
```
./
|_ CI-Breadcrumb
|_ application
|_ controllers
|_ Test_breadcrumb.php
|_ libraries
|_ Breadcrumb.php
|_ views
|_ test_breadcrumb.php
|_ system
|_ index.php
```## Utilisation
### Folder controllers
Your controller file contents with the default style:
```php
// Load library breadcrumb
$this->load->library('breadcrumb');// Add items
$breadcrumb_items = [
'Dashboard' => '/',
'Users' => 'users',
'Add' => 'users/add'
];
$this->breadcrumb->add_item($breadcrumb_items);// Generate breadcrumb
$this->data['content_breadcrumb'] = $this->breadcrumb->generate();
```
With a style customization (for the example with Bootstrap):
```
// Load library breadcrumb
$this->load->library('breadcrumb');// Custom style
$template = [
'tag_open' => '