Home  >  Article  >  Backend Development  >  destoon首页调用求购供应信息的地区名称的方法_PHP

destoon首页调用求购供应信息的地区名称的方法_PHP

WBOY
WBOYOriginal
2016-05-31 19:30:14848browse

本文实例主要实现了在destoon首页调用求购供应信息的地区名称。这是destoon开发中比较实用的的一个技巧。

实现代码如下:

{loop $tags $k $t} 
 
[{area_pos($t[areaid], '/', 1)}]{$t[title]} 
 
{/loop} 

代码说明如下:

$t[areaid], '/', 1 

第二个参数是地区与子地区的分隔符
第三个参数可选:设为1只显示一级地区分类;设为2显示二级地区分类等。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn