public static function url($page, array $params = [])
    {
        /*
         * Reuse existing controller or create a new one,
         * assuming that the method is called not during the front-end
         * request processing.
         */
        $controller = Controller::getController() ?: new Controller;

        return $controller->pageUrl($page, $params, true);
    }
public static function url($page, array $params = [])
    {
        /*
         * Reuse existing controller or create a new one,
         * assuming that the method is called not during the front-end
         * request processing.
         */
        $controller = Controller::getController() ?: new Controller;

        return $controller->pageUrl($page, $params, true);
    }
public static function url ( $ page , array $ params = [ ] ) { /*
         * Reuse existing controller or create a new one,
         * assuming that the method is called not during the front-end
         * request processing.
         */ $ controller = Controller :: getController ( ) ? : new Controller ; return $ controller -> pageUrl ( $ page , $ params , true ) ; }
Helper that makes a URL for a page in the active theme.
@param mixed $page Specifies the Cms Page file name.
@param array $params Route parameters to consider in the URL.
@return string
Helper that makes a URL for a page in the active theme .