Location: PHPKode > projects > Monyet > views/template.php
<?php
Class Template {

	function __construct() {
	}

	function show($name) {
		$path = site_path . 'templates' . DIRSEP . $name . DIRSEP . 'index.html';
		if (file_exists($path) == false) {
			trigger_error ('Template `' . $name . '` does not exist.', E_USER_NOTICE);
			return false;
		}
		include ($path);		
	}
}
?>
Return current item: Monyet