迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
先循環(huán)主題再循環(huán)評論內(nèi)容怎么寫這樣的語句?
比如:
我要在列表中調(diào)用產(chǎn)權(quán)人的帖子回復一,回復二
我用
{php $field = dr_field_options($ci->module['field']['comment']['id']);} {$t.content}
這樣的方式調(diào)用不出來。
我的整體循環(huán)代碼是:
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{module module=wenda catid=17 num=340 more=1 join=1_wenda_data_0 on=id order=inputtime}
<div class="table-row">
<div class="table-cell"><span class="tag4">編號:{$t.id}</span></div>
<div class="table-cell"><a href="{$t['url']}" target="_blank">{$t['title']}</a></div>
<div class="table-cell">{$t.author}</div>
<div class="table-cell">{dr_date($t['_jcnf'], 'Y')}年,{$t['cengshu']}層,{php $field = dr_field_options(218);} {$field[$t['fangwujiegou']]}</div>
{comment module=wenda join=1_wenda on=id order=inputtime num=3}
<div class="table-cell">{$t.content}</div>
{/comment}
<div class="table-cell">{dr_date($t['_updatetime'], 'Y-m-d')}</div>
</div>
{/module}
要使這個comment標簽調(diào)用編號{$t.id}的回帖
{comment module=wenda cid=$t.id order=inputtime num=3 return=tt} <div class="table-cell">{$tt.content}</div> {/comment}
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{module module=wenda catid=17 num=340 more=1 join=1_wenda_data_0 on=id order=inputtime}
<div class="table-row">
<div class="table-cell"><span class="tag4">編號:{$t.id}</span></div>
<div class="table-cell"><a href="{$t['url']}" target="_blank">{$t['title']}</a></div>
<div class="table-cell">{$t.author}</div>
<div class="table-cell">{dr_date($t['_jcnf'], 'Y')}年,{$t['cengshu']}層,{php $field = dr_field_options(218);} {$field[$t['fangwujiegou']]}</div>
{comment module=wenda join=1_wenda on=id order=inputtime num=3}
<div class="table-cell">{$t.content}</div>
{/comment}
<div class="table-cell">{dr_date($t['_updatetime'], 'Y-m-d')}</div>
</div>
{/module}
要使這個comment標簽調(diào)用編號{$t.id}的回帖
{comment module=wenda cid=$t.id order=inputtime num=3 return=tt} <div class="table-cell">{$tt.content}</div> {/comment}開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!