Skip to content

Instantly share code, notes, and snippets.

@Najaf
Created April 5, 2010 21:10
Show Gist options
  • Save Najaf/356900 to your computer and use it in GitHub Desktop.
Save Najaf/356900 to your computer and use it in GitHub Desktop.
<?php
function render_page($page, $params = array(), $layout = 'layout') {
extract($params);
$__page = "{$page}.php";
include "{$layout}.php";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment