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!

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


Quesion about adding navigation in PHP video

HI Randy

Thanks for answering my earlier questions. Maybe I am seeing things that don't exist however please correct me. Firstly, I am learning PHP with 2 laptops open. On one I watch the video of your courses and the on the second I have sublime open and I make changes and adjust the code as the video moves along. (look I have a small brain and it takes everything I got to wrap my head around what you are doing and saying...lol) When I hit a snag I pause the video and re-work my code until we are in sync.

Now here is what I am trying to figure out. On the video :Adding Active States of Navigation" at the time mark of 3:16 you say that "We have 3 different web pages ...." however if you jump back to the 3:00 mark your sublime is showing 4 web pages open.?

Secondly in the first stage of the lesson when you download the intial working files and then you create a header file, and inc file and a contact file etc I have no problem. These files I see in sublime as working files that I adjust teh code in. When I downloaded the updated files at the end of stage 2 there is no header file and yet in a browser there is a header at work its just I can't see it.

Just help me understand. I think I'm losing my mind...lol


James Barnett
James Barnett
39,199 Points

Please title your posts with subject lines related to the content of the post. Here are some tips on how to ask good questions on forum.

If you want to alert a particular member of the Treehouse community such as a teacher you can tag them using the @ followed by their name.

For example, tagging Morrice Pfeiffer & Randy Hoyt

2 Answers

Randy Hoyt
Randy Hoyt
Treehouse Guest Teacher

Hey Morrice,

At 3:00, I have four PHP files open. But only three of them are really web pages: the home page, the contact page, and the shirts page. The fourth PHP file open is header.php, which is included in the other three pages ... but it's not really a web page on its own.

In the project files, the header.php file should be inside the inc subfolder. If you click on inc in the sidebar, it should expand to show you the files inside the folder.

Does that clarify things?

Thanks Randy

All good


Thank you Mister Barnett