Best way to display breadcrumbs |
[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.
[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'); 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 { 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( 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 |
Welcome Guest, Not a member yet? Register Sign In |