Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.