protected function requestDataForm(&$aRequiredData, $provider)
    {
        $oUri                        = Factory::service('Uri');
        $this->data['required_data'] = $aRequiredData;
        $this->data['form_url']      = 'auth/login/' . $provider;

        if ($oUri->segment(4) == 'register') {
            $this->data['form_url'] .= '/register';
        }

        if ($this->data['return_to']) {
            $this->data['form_url'] .= '?return_to=' . urlencode($this->data['return_to']);
        }

        Factory::service('View')
            ->load([
                'structure/header/blank',
                'auth/register/social_request_data',
                'structure/footer/blank',
            ]);

        $oOutput = Factory::service('Output');
        echo $oOutput->get_output();
        exit();
    }
protected function requestDataForm(&$aRequiredData, $provider)
    {
        $oUri                        = Factory::service('Uri');
        $this->data['required_data'] = $aRequiredData;
        $this->data['form_url']      = 'auth/login/' . $provider;

        if ($oUri->segment(4) == 'register') {
            $this->data['form_url'] .= '/register';
        }

        if ($this->data['return_to']) {
            $this->data['form_url'] .= '?return_to=' . urlencode($this->data['return_to']);
        }

        Factory::service('View')
            ->load([
                'structure/header/blank',
                'auth/register/social_request_data',
                'structure/footer/blank',
            ]);

        $oOutput = Factory::service('Output');
        echo $oOutput->get_output();
        exit();
    }
protected function requestDataForm ( & $ aRequiredData , $ provider ) { $ oUri = Factory :: service ( 'Uri' ) ; $ this -> data [ 'required_data' ] = $ aRequiredData ; $ this -> data [ 'form_url' ] = 'auth/login/' . $ provider ; if ( $ oUri -> segment ( 4 ) == 'register' ) { $ this -> data [ 'form_url' ] .= '/register' ; } if ( $ this -> data [ 'return_to' ] ) { $ this -> data [ 'form_url' ] .= '?return_to=' . urlencode ( $ this -> data [ 'return_to' ] ) ; } Factory :: service ( 'View' ) -> load ( [ 'structure/header/blank' , 'auth/register/social_request_data' , 'structure/footer/blank' , ] ) ; $ oOutput = Factory :: service ( 'Output' ) ; echo $ oOutput -> get_output ( ) ; exit ( ) ; }
Renders the "request data" form

@param  array  &$aRequiredData An array of fields to request
@param  string  $provider      The provider being used

@throws \Nails\Common\Exception\FactoryException
Renders the request data form