north 7 years ago
parent
commit
3ded2a4cb7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      www/protected/controllers/HouseKeepingController.php

+ 4 - 4
www/protected/controllers/HouseKeepingController.php

@@ -11,10 +11,10 @@ class HouseKeepingController extends AdminController
 {
     public function actionIndex()
     {
-        //$tmp = HouseKeeping::model()->findAll();
-        //foreach ($tmp as $k => $v) {
-        //$v->delete();
-       // }
+        $tmp = HouseKeeping::model()->findAll();
+        foreach ($tmp as $k => $v) {
+          $v->delete();
+        }
         $status_option = CommonFn::getComboboxData(HouseKeeping::$status_option, 1, true, 100);
         $type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
         $cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);