Home > Backend Development > PHP Tutorial > discuz! 这地方怎么取值

discuz! 这地方怎么取值

WBOY
Release: 2016-06-13 12:07:03
Original
916 people have browsed it

discuz! 这地方如何取值

本帖最后由 z2916070581 于 2014-09-28 11:34:00 编辑 先说需求:门户中导航循环,所以要取门户中每个频道的链接
我这是这写的:
<li><a href="{$res[$key][primaltplname]}">{$res[$key][catname]}</a></li>
Copy after login


但点击栏目后,得出的结果是:


而打印出来的数组显示如下字段情况:

[14] => Array
        (
            [catid] => 16
            [upid] => 0
            [catname] => 新闻动态
            [articles] => 0
            [allowcomment] => 0
            [displayorder] => 15
            [notinheritedarticle] => 1
            [notinheritedblock] => 1
            [domain] => 
            [url] => 
            [uid] => 1
            [username] => admin
            [dateline] => 1411471404
            [closed] => 1
            [shownav] => 0
            [description] => 
            [seotitle] => 
            [keyword] => 
            [primaltplname] => ./template/sdhq:portal/list_category_xwdt
            [articleprimaltplname] => ./template/sdhq:portal/view
            [disallowpublish] => 0
            [foldername] => 
            [notshowarticlesummay] => 0
            [perpage] => 15
            [maxpages] => 1000
            [noantitheft] => 0
            [lastpublish] => 0
        )
其中标示红色字段的就是频道的列表模板字段.我想肯定是这里出现了问题吧!

不知这种情况如何处理呢?
------解决思路----------------------
呵呵自己解决了,原来是:portal.php?mod=list&catid=6
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