I am currently working on a admin backend and now want to move some pages into different folders (so I do not have all scripts in one folder). Structure looks like this:
/
/theme/assets/...
/templates/head.php
/templates/foot.php
/top/index.php
/index.php
In head.php there are some stylesheets added like this
<link href="theme/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
This works fine for files in the root folder (e.g. index.php), but when I use the same head.php in /top/index.php it does not work because the path is wrong. Is it somehow possible to properly include the stylesheets etc. while having the scripts in different folders?
Greetz,