Skip to content

Instantly share code, notes, and snippets.

@rumf
Created February 14, 2013 04:42
Show Gist options
  • Save rumf/4950640 to your computer and use it in GitHub Desktop.
Save rumf/4950640 to your computer and use it in GitHub Desktop.
function renderTemplate($template, $param = false) {
ob_start();
if ($param) {
extract($param);
}
include($template);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment