Base tag not working in slim


I’m new to slim and finding it difficult to load css files from public folder in my sub-directories. Below is my sample code

<?php include dirname(__DIR__).'/parts/links.php'; ?>

Warning : include(/home/Desktop/application/templates/news/parts/links.php)

i don’t understand why the path is including the “templates” folder instead of the “public” folder.


the page isn’t displaying the base tag in my question


Put three backticks ``` on their own line, followed by your code, then three more backticks on their own line again.