public function loadTemplate($tpl = null, $strict = false)
{
$result = '';
$uris = $this->viewFinder->getViewTemplateUris(array('component' => $this->container->componentName, 'view' => $this->getName(), 'layout' => $this->getLayout(), 'tpl' => $tpl, 'strictTpl' => $strict));
foreach ($uris as $uri) {
try {
$result = $this->loadAnyTemplate($uri);
break;
} catch (\Exception $e) {
$result = $e;
}
}
if ($result instanceof \Exception) {
$this->container->platform->raiseError($result->getCode(), $result->getMessage());
}
return $result;
}