Lime\App::baseUrl PHP Method

baseUrl() public method

Returns link based on the base url of the app
public baseUrl ( String $path ) : String
$path String e.g. /js/myscript.js
return String Link
    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;
    }