public function findViewFile($view, $viewtype)
{
if (!isset($this->locations[$viewtype][$view])) {
return "";
}
$path = $this->locations[$viewtype][$view];
if ($this->fileExists($path)) {
return $path;
}
return "";
}