本文整理匯總了PHP中Frontend::getDetailPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Frontend::getDetailPage方法的具體用法?PHP Frontend::getDetailPage怎麽用?PHP Frontend::getDetailPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Frontend
的用法示例。
在下文中一共展示了Frontend::getDetailPage方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
/*
$data = $seo = $arrDetailProduct['data'];
$parent_id = $data['parent_cate'];
$cate_type_id = $data['cate_type_id'];
$_SESSION['view'][$product_id] = $data;
$arrRelated = $model->getProductRelated($parent_id,$product_id);
$arrDetailCate =$model->getDetailCate($parent_id);
$arrDetailCateType =$model->getDetailCateType($cate_type_id);
*/
break;
case "news-detail":
$article_alias = $tmp_uri[2];
$tmp = explode("-", $article_alias);
$id = (int) end($tmp);
$detail = $model->getDetail('articles', $id);
$seo = $detail;
break;
case "content":
$page_id = $object_id;
$data = $seo = $model->getDetailPage($page_id);
break;
case "page":
$alias = $tmp_uri[2];
$detailArr = $seo = $model->getDetailPageByAlias($alias);
//$rs_article = $model->getDetail('pages', $page_id);
//$arrDetailPage = mysql_fetch_assoc($rs_article);
break;
default:
$seo = $model->getDetailSeo(1);
break;
}
示例2: explode
break;
case "contact":
$seo = $model->getDetailSeo(3);
break;
case "info":
$seo = $model->getDetailSeo(8);
break;
case "detail":
$id = $object_id;
$seo = $detailProduct = $model->getDetail('product', $id);
$detailCateType = $model->getDetail('cate_type', $detailProduct['cate_type_id']);
$detailCate = $model->getDetail('cate', $detailProduct['cate_id']);
break;
case "news-detail":
$article_alias = $tmp_uri[2];
$tmp = explode("-", $article_alias);
$id = (int) end($tmp);
$detailNews = $model->getDetailNews($id);
$seo = $detailNews;
break;
case "content":
$data = $seo = $model->getDetail('pages', $page_id);
break;
case "page":
$rs_article = $model->getDetailPage($page_id);
$arrDetailPage = mysql_fetch_assoc($rs_article);
break;
default:
$seo = $model->getDetailSeo(1);
break;
}