I have got a some php files in my root directory, such as:
All of these files include a navigation.php from the directory
This navigation.php is basically a header which contains (relative) links to the different files, such as to start.php or news.php. This works perfectly fine.
However, I'm having trouble to make this work, if some of my files are not in the root directory but in a sub-directory, for instance:
If I include the navigation.php in this file, the links in the navigation do not work anymore (because they are not on the same level). To illustrate this, the start.php is not the same directory as the text_01.php.
What's the best way to solve this issue? Absolute paths, or is there another solution for that? I appreciate your help!
> define('ABSPATH', dirname(__FILE__) . '/' );