refreshBasket example

/** * @param Enlight_Controller_Request_Request $request * @param Enlight_Controller_Response_ResponseHttp $response * * @return void */
    public function updateLog($request$response)
    {
        if ($this->shouldRefreshLog($request)) {
            $this->cleanupStatistic();
            $this->refreshBasket($request);
            $this->refreshLog($request);
            $this->refreshReferer($request);
            $this->refreshArticleImpression($request);
            $this->refreshBlog($request);
            $this->refreshCurrentUsers($request);
            $this->refreshPartner($request$response);
        }
    }

    /** * @param Enlight_Controller_Request_Request $request * * @return void */
public function loginAction()
    {
        $this->View()->assign('sTarget', $this->Request()->getParam('sTarget'));

        if ($this->Request()->isPost()) {
            $checkCustomer = $this->admin->sLogin();
            if (\is_array($checkCustomer) && !empty($checkCustomer['sErrorMessages'])) {
                $this->View()->assign('sFormData', $this->Request()->getPost());
                $this->View()->assign('sErrorFlag', $checkCustomer['sErrorFlag']);
                $this->View()->assign('sErrorMessages', $checkCustomer['sErrorMessages']);
            } else {
                $this->refreshBasket();
            }
        }

        if (empty($this->View()->getAssign('sErrorMessages')) && $this->admin->sCheckUser()) {
            $this->redirect(
                [
                    'controller' => $this->Request()->getParam('sTarget', 'account'),
                    'action' => $this->Request()->getParam('sTargetAction', 'index'),
                ]
            );

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