![]() |
Solved: How to Dynamic breadcrumbs based on uri segment?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Solved: How to Dynamic breadcrumbs based on uri segment?? (/showthread.php?tid=14729) |
Solved: How to Dynamic breadcrumbs based on uri segment?? - El Forum - 01-13-2009 [eluser]CtheB[/eluser] Hi, Does somebody know somethin' like a helper for dynamic breadcrumbs based on uri? Somethin' like this: (But then smarter and less code. So you can have unlimited breadcrumbs.) Code: <?php I tried to rewrite it with more for loops in it. but i can't figure it out yet: Code: <?php Thnx for helping me out! Greetz Carlos Solved: How to Dynamic breadcrumbs based on uri segment?? - El Forum - 01-14-2009 [eluser]bitist[/eluser] Not sure, but if I understand you want something to regenerate the uri without the empty parts. If yes try this code: Code: $new_uri=''; Solved: How to Dynamic breadcrumbs based on uri segment?? - El Forum - 01-14-2009 [eluser]xwero[/eluser] Code: $urls = array(); Code: array( array('http://site.com/controller','controller'), array('http://site.com/controller/method','method')) Solved: How to Dynamic breadcrumbs based on uri segment?? - El Forum - 01-14-2009 [eluser]CtheB[/eluser] Thank you xwero, That's exactly where i was searching for.. the uri segment_array() doh! I should had looked better in the user guide prob.. I made only 1 small adjustment: Code: $urls = array(); Now i can echo the content so easily ![]() Code: foreach($urls as $key => $value) Thanks again ![]() PS. Devpedia thanx for helping, but xwero's alternative was where i was searching for.. Solved: How to Dynamic breadcrumbs based on uri segment?? - El Forum - 01-30-2009 [eluser]bd3521[/eluser] Sweet thanks. Just have to remove the echo ' >> '; prior to the first segment. |