How do i add external css to a php file?

If I understand you correctly, you want to do exactly as I do. Content changes depending on the page, but the template is the same.

I always create a variable for the content ($content_name) and then define the path to that content in my controller (index.php) for the specific page. Like this: $content_name = ‘/includes/ (path to the specific html file)’;