html - Mapping paths in PHP -
I'm looking at a lot of threads here that are related to the path and include PHP, and that's full of current knowledge Using the path is to refer to the resources However, I am confused with anything, however, the best way to conform to the site's navigation is the way of maps. For example, my site structure is as follows:
[root] Main CSS JS [section-1] index 1.php [section-1] index-1bp [section - 2] Index 2.php
In my primary navigation bar - for which I am included in "index-1 .php" - I & lt; A href = "../ section-2 />
to link to another main section; However, in the sub-directory of one of those main sections, such as" index-1b. " FP ", I
& lt; a href =" ../../ section-2 / & gt; The structure of the link is required as
.
There are related paths in different headers / navigation, how can I reference these links in a single, unified way in the primary site navigation? I see the mention of using a variable corresponding to the path, which makes sense, but if I am describing, then I need to include a reference to that variable for each navigation link - I'm guessing Probably a more efficient way?
Thank you for any guidance here.
Comments
Post a Comment