protected function deleteStore()
    {
        $this->controlAccess('store_delete');

        if ($this->store->delete($this->data_store['store_id'])) {
            $this->redirect('admin/settings/store', $this->text('Store has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Store has not been deleted'), 'danger');
    }
protected function deleteStore()
    {
        $this->controlAccess('store_delete');

        if ($this->store->delete($this->data_store['store_id'])) {
            $this->redirect('admin/settings/store', $this->text('Store has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Store has not been deleted'), 'danger');
    }
protected function deleteStore ( ) { $ this -> controlAccess ( 'store_delete' ) ; if ( $ this -> store -> delete ( $ this -> data_store [ 'store_id' ] ) ) { $ this -> redirect ( 'admin/settings/store' , $ this -> text ( 'Store has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Store has not been deleted' ) , 'danger' ) ; }
Deletes a store
Deletes a store