protected function _actionGet(AnCommandContext $context)
    {
        $this->_request->append(array(
            'layout' => 'default',
        ));

        $this->getCommandChain()->run('layout.'.$this->getRequest()->get('layout'), $context);

        if ($this->getRequest()->get('layout') == 'login' && !$this->viewer->guest()) {
            $url = route('option=com_subscriptions&view=signup&layout=payment&id='.$this->getItem()->id);
            $context->response->setRedirect($url);
            return false;
        }

        return parent::_actionGet($context);
    }
protected function _actionGet(AnCommandContext $context)
    {
        $this->_request->append(array(
            'layout' => 'default',
        ));

        $this->getCommandChain()->run('layout.'.$this->getRequest()->get('layout'), $context);

        if ($this->getRequest()->get('layout') == 'login' && !$this->viewer->guest()) {
            $url = route('option=com_subscriptions&view=signup&layout=payment&id='.$this->getItem()->id);
            $context->response->setRedirect($url);
            return false;
        }

        return parent::_actionGet($context);
    }
protected function _actionGet ( AnCommandContext $ context ) { $ this -> _request -> append ( array ( 'layout' => 'default' , ) ) ; $ this -> getCommandChain ( ) -> run ( 'layout.' . $ this -> getRequest ( ) -> get ( 'layout' ) , $ context ) ; if ( $ this -> getRequest ( ) -> get ( 'layout' ) == 'login' && ! $ this -> viewer -> guest ( ) ) { $ url = route ( 'option=com_subscriptions&view=signup&layout=payment&id=' . $ this -> getItem ( ) -> id ) ; $ context -> response -> setRedirect ( $ url ) ; return false ; } return parent :: _actionGet ( $ context ) ; }
Renders the sign up view.

@param AnCommandContext $context
Renders the sign up view .