public routeUrl ( String $path ) : String | ||
$path | String | e.g. /pages/home |
return | String | Link |
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, '/');
}