Drupal- How to include a file in drupal template, theme like common Header, Footer

Here is how you can include a common header, footer in drupal-

<?php
include ($directory."/includes/header.php");
?>

“$directory” is a variable automatically available in Drupal which holds the value of a path to your currently executed theme.

Bookmark and Share
Both comments and pings are currently closed.

Comments are closed.

n