Skip to content

Why use include ​

Most sites repeat headers, footers, navigation, or legal blocks. The include tag pulls shared fragments into each page so you do not duplicate markup.

Example page ​

Suppose the page is app/home/view/index/docs.html and you want shared chrome.

Shared partial paths ​

html
app/home/view/public/head.html
app/home/view/public/foot.html

In the page template ​

html
<include "public/head"/>
<!-- page-specific body -->
<include "public/foot"/>

PhpTide documentation