Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

nicholas maddren
nicholas maddren
12,793 Points

Creating a breadcrumb navbar

Hey guys I want to create a breadcrumb navbar that can tell the user what page they are on and also be able to go back to the last visited page. Would I use PHP to do this? I'm a little confused about the whole concept of it and am struggling to understand how everyone else has made theirs.

Thanks :)

2 Answers

Ricky Catron
Ricky Catron
13,023 Points

You could do it in PHP pretty easily or maybe even Javascript. You could add each pages they have been on to an array and then foreach through the array to create the navbar.