当前位置: 首页>>代码示例>>PHP>>正文


PHP Frontend::getDetail方法代码示例

本文整理汇总了PHP中Frontend::getDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP Frontend::getDetail方法的具体用法?PHP Frontend::getDetail怎么用?PHP Frontend::getDetail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Frontend的用法示例。


在下文中一共展示了Frontend::getDetail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

     		$page = ($page==0) ? 1 : $page;
             */
     $seo = $model->getDetailSeo(4);
     break;
 case "contact":
     $seo = $model->getDetailSeo(3);
     break;
 case "info":
     $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);
开发者ID:hoangnhonline,项目名称:phong-tro-sg,代码行数:31,代码来源:routes.php

示例2: array

    }
    $mod = "";
    return array("seo" => $seo, "mod" => $mod, 'cate_type_id' => $cate_type_id, 'cate_id' => $cate_id, 'page_id' => $page_id, 'object_id' => $object_id);
}
$uri = $_SERVER['REQUEST_URI'];
$arrRS = checkCat($uri);
$mod = $arrRS['mod'];
$cate_type_id = $arrRS['cate_type_id'];
$cate_id = $arrRS['cate_id'];
$page_id = $arrRS['page_id'];
$object_id = $arrRS['object_id'];
$uri = str_replace(".html", "", $uri);
$tmp_uri = explode("/", $uri);
switch ($mod) {
    case "cate":
        $seo = $arrDetailCateType = $model->getDetail('cate_type', $cate_type_id);
        if ($cate_id > 0) {
            $seo = $detailCate = $model->getDetail('cate', $cate_id);
        }
        $arrProduct = $model->getListProductCate($cate_type_id, $cate_id);
        break;
    case "news":
        $seo = $model->getDetailSeo(4);
        break;
    case "contact":
        $seo = $model->getDetailSeo(3);
        break;
    case "info":
        $seo = $model->getDetailSeo(8);
        break;
    case "detail":
开发者ID:hoangnhonline,项目名称:lam-dep,代码行数:31,代码来源:routes.php


注:本文中的Frontend::getDetail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。