Updated getTemplate to allow subdirectories.

pull/25/head
Mike Cao 12 years ago
parent 440cca5901
commit ecc0b87024

@ -146,7 +146,10 @@ class View {
* @return string Template file location
*/
public function getTemplate($file) {
return $this->path.'/'.basename($file, '.php').'.php';
if ((substr($file, -4) != '.php')) {
$file .= '.php';
}
return $this->path.'/'.$file;
}
/**

Loading…
Cancel
Save