代码如下:
<php>
$pid_info=M('terms')->where('term_id='.I('get.id'))->find();
$pid_path = explode("-",$pid_info['path']);
$path_text=array();
foreach ($pid_path as $pid_vo) {
if(empty($pid_vo)){
array_push($path_text,'首页');
}else{
$tmp=M('terms')->where('term_id='.$pid_vo)->find();
array_push($path_text,$tmp['name']);
}
}
$p...
作者:admin | 发布:
Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in
/www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line
19
2017年1月14日 | 分类:
ThinkCMF | 阅读:1,390次 |