protected function register()
    {
        $url = new \Phalcon\Mvc\Url();

        $appConf = $this->getDI()->getShared(Services::CONFIG)->app;

        $url->setBaseUri($appConf->base_uri);
        $url->setStaticBaseUri(isset($appConf->static_base_uri) ? $appConf->static_base_uri : $appConf->base_uri);

        return $url;
    }
protected function register()
    {
        $url = new \Phalcon\Mvc\Url();

        $appConf = $this->getDI()->getShared(Services::CONFIG)->app;

        $url->setBaseUri($appConf->base_uri);
        $url->setStaticBaseUri(isset($appConf->static_base_uri) ? $appConf->static_base_uri : $appConf->base_uri);

        return $url;
    }
protected function register ( ) { $ url = new \ Phalcon \ Mvc \ Url ( ) ; $ appConf = $ this -> getDI ( ) -> getShared ( Services :: CONFIG ) -> app ; $ url -> setBaseUri ( $ appConf -> base_uri ) ; $ url -> setStaticBaseUri ( isset ( $ appConf -> static_base_uri ) ? $ appConf -> static_base_uri : $ appConf -> base_uri ) ; return $ url ; }
The URL component is used to generate all kind of urls in the application

@return \Phalcon\Mvc\Url
The URL component is used to generate all kind of urls in the application