Cakephp breadcrumbs


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.