Skip to content

Instantly share code, notes, and snippets.

@lloc
Created October 1, 2011 10:51
Show Gist options
  • Save lloc/1255873 to your computer and use it in GitHub Desktop.
Save lloc/1255873 to your computer and use it in GitHub Desktop.
Extract and Include Example 1
<?php
$template_dir = dirname (__FILE_) . '/templates';
extract ($_REQUEST);
include ($template_dir . '/header.html');
print_r (get_defined_vars ());
include ($template_dir . '/footer.html');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment