I am trying to simplify a website that someone else wrote.
There is a special CSS class (selected) for the menu of the page that you are on. The original designer created a different menu file for each subdirectory (so, if something changes, you have to change 5 files).
So I created a single file that I could include in every file... (oh, maybe there's a require type statement...)
My GetThisPath function is working - I've already test with a simple page.
My problem is how to write the conditional code without have to stuff all five HTML menu files into the case (or if) statements.
My sense of the problem is that the server is not re-calculating the path with each new page.
There is a special CSS class (selected) for the menu of the page that you are on. The original designer created a different menu file for each subdirectory (so, if something changes, you have to change 5 files).
So I created a single file that I could include in every file... (oh, maybe there's a require type statement...)
My GetThisPath function is working - I've already test with a simple page.
My problem is how to write the conditional code without have to stuff all five HTML menu files into the case (or if) statements.
My sense of the problem is that the server is not re-calculating the path with each new page.