Base tag not working in slim


#1

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'; ?>

Errors
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.


#2

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


#4

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