Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to make a breadcrumb with Code Igniter?

I wonder what a best way to make a breadcrumb with Code Igniter.

1 : Retrieve the strings with URL

example : $this->uri->segment(2)

2 : Do you know another way ?

I'd really like to have your opinion

like image 210
zourite Avatar asked Jun 27 '11 14:06

zourite


People also ask

What is breadcrumbs in CodeIgniter?

Breadcrumbs is an small library that helps your manage HTML breadcrumbs with CodeIgniter. Follow this answer to receive notifications.

What is breadcrumbs in asp net?

The Telerik ASP.NET Core Breadcrumb is an intuitive UI component that allows navigation within a folder structure or web page. It provides an easy way to navigate backwards by one or multiple steps.


3 Answers

There are some problems with buti's Codeigniter-breadcrumbs library, particularly with the "unshift" method and how it uses Codeigniter's "site_url" method instead of giving you the option to push to breadcrumbs using "base_url". You can check out my fork, since buti's repo is no longer being maintained (since 2012): https://github.com/aburd/Codeigniter-breadcrumbs

like image 109
Aaron Burdick Avatar answered Oct 05 '22 16:10

Aaron Burdick


Using URL segments is specific to how you have your URL structured - there is not always a 1:1 match.

http://forum.codeigniter.com/thread-25372.html?highlight=137949

like image 29
Dan Avatar answered Oct 05 '22 15:10

Dan


If you want 100% Match and easy to customize use this one :

https://github.com/nobuti/Codeigniter-breadcrumbs

Breadcrumbs is an small library that helps your manage HTML breadcrumbs with CodeIgniter.

like image 32
Florin Avatar answered Oct 05 '22 16:10

Florin