Welcome Guest, Not a member yet? Register   Sign In
Best way to display breadcrumbs
#1

[eluser]Unknown[/eluser]
Hi

What is the preferred way of creating breadcrumbs in a web application with codeigniter?
Like this:
Code:
CodeIgniter  >   Forum Home  >  CodeIgniter Development Forums  >  Code!  >  New Topic

I know there are several ways of accomplishing this, but what is the best way in codeigniter?
With maximum "reuse ability" for future controllers.
#2

[eluser]Unknown[/eluser]
Autocrumb-helper seems to do a good job!
#3

[eluser]InsiteFX[/eluser]
Look up on top how the CI Forums is doing it...
#4

[eluser]ludo31[/eluser]
Hello ;

I try to use this


beadcrumb

for my project but I have some problem :

this project is for shoping shoes :
so my home url is :
Code:
http://localhost/MonSite/index.php/

after when we click on Men Menu :

Code:
http://localhost/MonSite/index.php/client/manageMen

I hide client :
Code:
$config['exclude'] = array('client');
so the breadcrumb result :

Home > Men

and in window we see all men shoes , and we click on one of them

the url is :
Code:
http://localhost/MonSite/index.php/client/manageShoes/89

here : manageShoes is a function in client class which manage one specific shoes : 89 is the number of idea

so in client class we have something like that

Code:
class Client extends CI_Controller {
public function manageMen {.....}
public function manageWomen {.....}
public function manageChild {.....}
public function manageShoes{.....}

}
so the problem is in manageShoes that is to say when we click on shoes I would like to make breadcrumb according the gender
for example when I click on Men and one of the shoes on window :

Code:
Home > Men > Shoes > 89

or women on shoes with id 90

Code:
Home > Women > Shoes > 90

of course we can hide the last number but my problem is on manageShoes

I configure all like that

Code:
$config['replacer'] = array(
        
    'manageMen'=>array('/index.php/client/manageMen |Men'),
    
    'manageWomen '=>array('/index.php/client/manageWomen |Women'),
    'manageChild '=>array('/index.php/client/manageChild |Child'),
        
    'manageShoes'=>array('/index.php/client/manageMen |Men','Shoes')

so here I just add Men in gestionChaussure ' breadcrumb so when we click on women the bread stay like this :

Code:
Home > Men > Shoes

did you have an idea ?? thanks




Theme © iAndrew 2016 - Forum software by © MyBB