public function baseUrl($path)
{
$url = '';
if (strpos($path, ':') === false) {
/*
if ($this->registry['base_port'] != '80') {
$url .= $this->registry['site_url'];
}
*/
$url .= $this->registry["base_url"] . '/' . ltrim($path, '/');
} else {
$url = $this->pathToUrl($path);
}
return $url;
}