コード例 #1
0
ファイル: productcats.php プロジェクト: lxthien/batdongsan
 function updateCatSpecPosition($cat_id)
 {
     $allPost = array_keys($_POST);
     foreach ($allPost as $row) {
         if (substr($row, 0, 12) == "specPosition") {
             $catSpecId = explode("_", $row);
             $productCatSpec = new productcatspec($catSpecId[1]);
             $productCatSpec->position = $this->input->post($row);
             $productCatSpec->save();
             $productCatSpec->clear();
         }
     }
     redirect("admin/productcats/edit/" . $cat_id);
 }