Пример #1
0
     $seo = $model->getDetailSeo(8);
     break;
 case "detail":
     $detail = $imageHouseArr = array();
     $product_alias = $tmp_uri[2];
     $tmp = explode("-", $product_alias);
     $id = (int) end($tmp);
     $seo = $detail = $model->getDetail("objects", $id);
     $object_type = $detail['object_type'];
     $type_id = $detail['type_id'];
     $detailType = $model->getDetail('type_bds', $type_id);
     if ($object_type == 1) {
         $convenientArr = $model->getList('convenient', -1, -1);
         $arrAddonSelected = $model->getListRoomInfo($id, 1);
         $arrConvenientSelected = $model->getListRoomInfo($id, 2);
         $imageArr = $model->getChild("images", "object_id", $id, 2);
         $houseDetail = $model->getDetail("house", $detail['house_id']);
         $imageHouseArr = $model->getChild("images", "object_id", $detail['house_id'], 1);
         $detailMod = $model->getDetail('users', $houseDetail['user_id']);
         $houseServiceArr = $model->getHouseServices($detail['house_id']);
     } else {
         $type_images = $object_type == 3 ? 4 : 1;
         $imageHouseArr = $model->getChild("images", "object_id", $id, $type_images);
         $detailMod = $model->getDetail('users', $detail['user_id']);
         $houseServiceArr = $model->getHouseServices($detail['id']);
     }
     /*
     $data = $seo = $arrDetailProduct['data'];
     $parent_id = $data['parent_cate'];
     $cate_type_id = $data['cate_type_id'];
     $_SESSION['view'][$product_id] = $data;