setHttpResponseCode example


    }

    /** * @throws Exception * * @deprecated since 5.7.4. Will be removed in Shopware 5.8 without replacement */
    public function ajaxValidateEmailAction()
    {
        $this->Front()->Plugins()->ViewRenderer()->setNoRender();
        $this->Response()->setHttpResponseCode(Response::HTTP_GONE);
    }

    public function ajaxValidatePasswordAction()
    {
        Shopware()->Front()->Plugins()->ViewRenderer()->setNoRender();

        $data = $this->getPostData();
        $customerForm = $this->createCustomerForm($data['register']['personal']);

        $errors = $this->getFormErrors($customerForm);
        $errors = [
            
return $this;
    }

    /** * {@inheritdoc} */
    public function setRedirect($url$code = 302)
    {
        $this->canSendHeaders(true);

        $this->headers->set('Location', $url);
        $this->setHttpResponseCode($code);

        return $this;
    }

    /** * {@inheritdoc} */
    public function getHeaders()
    {
        $headers = [];

        
Home | Imprint | This part of the site doesn't use cookies.