Merge pull request #155 from zzplab/master

Using multiple template paths
pull/156/head
Mike Cao 10 years ago
commit 7971ba40a2

@ -154,7 +154,13 @@ class View {
if ((substr($file, -4) != '.php')) {
$file .= '.php';
}
return $this->path.'/'.$file;
if ((substr($file, 0, 1) == '/')) {
return $file;
}
else
{
return $this->path.'/'.$file;
}
}
/**

Loading…
Cancel
Save