public function getFormDefinedUrl($parameterName, $default = null)
    {
        $formDefinedUrl = $this->form->get($parameterName)->getData();

        if (empty($formDefinedUrl)) {
            if ($default === null) {
                $default = ConfigQuery::read('base_url', '/');
            }

            $formDefinedUrl = $default;
        }

        return URL::getInstance()->absoluteUrl($formDefinedUrl);
    }
public function getFormDefinedUrl($parameterName, $default = null)
    {
        $formDefinedUrl = $this->form->get($parameterName)->getData();

        if (empty($formDefinedUrl)) {
            if ($default === null) {
                $default = ConfigQuery::read('base_url', '/');
            }

            $formDefinedUrl = $default;
        }

        return URL::getInstance()->absoluteUrl($formDefinedUrl);
    }
public function getFormDefinedUrl ( $ parameterName , $ default = null ) { $ formDefinedUrl = $ this -> form -> get ( $ parameterName ) -> getData ( ) ; if ( empty ( $ formDefinedUrl ) ) { if ( $ default === null ) { $ default = ConfigQuery :: read ( 'base_url' , '/' ) ; } $ formDefinedUrl = $ default ; } return URL :: getInstance ( ) -> absoluteUrl ( $ formDefinedUrl ) ; }
Build an absolute URL using the value of a form parameter.

@param string $parameterName the form parameter name
@param string $default a default value for the form parameter. If not defined, the configured base URL is used.
@return string an absolute URL
Build an absolute URL using the value of a form parameter .