Any examples to have a shared component (either php or .shtml) on doing either a header / footer or Menu that is editable.
Main Page index.php
Components
header.inc
menu.inc
footer.inc
Thanks
Any examples to have a shared component (either php or .shtml) on doing either a header / footer or Menu that is editable.
Main Page index.php
Components
header.inc
menu.inc
footer.inc
Thanks
Hi @jimiz
My construct is as follows. I have all files in the root. Both my .php files and my .inc files.
My header.inc contains opening tags (doctype, html, head, body) and the visible header.
My footer.inc contains the closing tags (/body and /html) and the bottom menu / foot text.
Divs and content of this page.
<?php include("$_SERVER[DOCUMENT_ROOT]/footer.inc"); ?>
Hope the idea is clear.