protected function actionAccountAddress()
    {
        $key = 'delete';
        $this->controlToken($key);
        $address_id = $this->getQuery($key);

        if (!empty($address_id)) {

            if ($this->address->delete($address_id)) {
                $this->redirect('', $this->text('Address has been deleted'), 'success');
            }

            $this->redirect('', $this->text('Address has not been deleted'), 'warning');
        }
    }
protected function actionAccountAddress()
    {
        $key = 'delete';
        $this->controlToken($key);
        $address_id = $this->getQuery($key);

        if (!empty($address_id)) {

            if ($this->address->delete($address_id)) {
                $this->redirect('', $this->text('Address has been deleted'), 'success');
            }

            $this->redirect('', $this->text('Address has not been deleted'), 'warning');
        }
    }
protected function actionAccountAddress ( ) { $ key = 'delete' ; $ this -> controlToken ( $ key ) ; $ address_id = $ this -> getQuery ( $ key ) ; if ( ! empty ( $ address_id ) ) { if ( $ this -> address -> delete ( $ address_id ) ) { $ this -> redirect ( '' , $ this -> text ( 'Address has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Address has not been deleted' ) , 'warning' ) ; } }
Handles various actions
Handles various actions