public function routeUrl($path) { $url = ''; /* if ($this->registry['base_port'] != '80') { $url .= $this->registry['site_url']; } */ $url .= $this->registry["base_route"]; return $url . '/' . ltrim($path, '/'); }