本文整理匯總了PHP中Frontend::getChild方法的典型用法代碼示例。如果您正苦於以下問題:PHP Frontend::getChild方法的具體用法?PHP Frontend::getChild怎麽用?PHP Frontend::getChild使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Frontend
的用法示例。
在下文中一共展示了Frontend::getChild方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$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;