Posted By

stolkchris on 09/19/10


Tagged

php html cakephp helper breadcrumbs


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

rascoop
hmvrulz
Plotarius
kmcbride


Cakephp breadcrumbs


 / Published in: PHP
 

If you're ever bothered by CakePHP's limited breadcrumbs support for displaying them use this to build your own!

  1. <?php
  2.  
  3. // THE HTML HELPER NEEDS TO BE ENABLED FOR THIS TO WORK!
  4.  
  5. print_r($html->_crumbs);
  6.  
  7. // USAGE EXAMPLE
  8.  
  9. foreach($html->_crumbs as $crumb){
  10. echo $html->link($crumb['0'],$crumb['1']);
  11. }
  12.  
  13.  
  14. ?>

Report this snippet  

You need to login to post a comment.