public function setBaseUrl($baseUrl)
    {
        $this->baseUrl = '/'.trim(trim($baseUrl), '/');
        $this->router->getContext()->setBaseUrl($this->baseUrl);

        return $this;
    }
public function setBaseUrl($baseUrl)
    {
        $this->baseUrl = '/'.trim(trim($baseUrl), '/');
        $this->router->getContext()->setBaseUrl($this->baseUrl);

        return $this;
    }
public function setBaseUrl ( $ baseUrl ) { $ this -> baseUrl = '/' . trim ( trim ( $ baseUrl ) , '/' ) ; $ this -> router -> getContext ( ) -> setBaseUrl ( $ this -> baseUrl ) ; return $ this ; }
Sets the base URL.

@param string $baseUrl Base URL.

@return RouteRenderer
Sets the base URL .