PHP/HTML: Link To Any Folder/File with 1 nav Include (php-magic-linking GitHub Project)

preview_player
Показать описание
This template solves the problem of linking to the same file from a different location. You can now use 1 copy of nav with a php include on every page & never worry about including ../ in your href any more!

The readme for this project has more detailed instructions

Рекомендации по теме
Комментарии
Автор

Thank you for the video and the php magic. I had one issue with the index page not linking properly with the nav / footer, but every other area on my website was working. Do you have any insight maybe as to why? Thank you again for the tutorial.

akilljoyproduction
Автор

Interesting but having unique parent folders per page and a bunch of index.php pages makes it a bit un-manageable

AnthonyTatekawa
Автор

Wouldn’t it be a lot easier just to define some constants for each path.

markjackson
Автор

Help. Can the folder be called "Harambe"?

juancaguirre