public function actionDeleteData() { $data = CustomerItems::deleteAll(); $data = Item::deleteAll("category_id=1"); $this->flash('success', Yii::t('easyii/customers', 'Data hase been removed successfully')); return $this->redirect(['/admin/customers/items/1']); }
public function deleteSelectedServices() { $data = CustomerItems::deleteAll("customer_id =" . $this->item_id); return true; }