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

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

WBOY
Release: 2016-05-31 19:30:14
Original
929 people have browsed it

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

实现代码如下:

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

Copy after login

代码说明如下:

$t[areaid], '/', 1 
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template