PHP Simple dynamic breadcrumb

Posted by Adrian on Stack Overflow See other posts from Stack Overflow or by Adrian
Published on 2010-04-07T16:36:14Z Indexed on 2010/04/07 16:43 UTC
Read the original article Hit count: 388

Filed under:
|
|

Hello,

I think this script is of big interest to any noob around here :) including me :)

What I want to create is a little code that I can use in any file and will generate a breadcrumb like this:

If the file is called "website.com/templates/index.php" the breadcrumb should show:

Website.com > Templates

^^ link ^^plain text

If the file is called "website.com/templates/template_some_name.php" the breadcrumb should show:

Website.com > Templates > Template Some Name

^^ link ^^link ^^plain text

I am grateful for any reply, thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about breadcrumb