By django, one can use a base template for a common navbar and a footer:
Firstly, adding
{% block content %}
{% endblock %}
to the base template.
Secondly, adding
{% extends 'base.html' %}
{% block content %}
{% endblock %}
to the secondary pages.
Is there a method to do this using php but without a web framework?