Jump to content

[SOLVED] Including


dylandcor

Recommended Posts

This is probably a very simple question, but any help would be appreciated.  I have multiple pages that have a sidebar with links in it.  I use the file sidebar.php to house the links.  I was wondering if there was any way I could check which file was including sidebar.php so I could dynamically change the links based on where the user is in my site.  I thought about assigning a variable in each main page and checking it in the sidebar.php, but I was wondering if there was an easier way.

 

Any help would be appreciated!

 

Link to comment
https://forums.phpfreaks.com/topic/145406-solved-including/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.