{$error} {$sql}
兩個(gè)標(biāo)簽,已經(jīng)寫在list外,但是一直不顯示,哪位遇到過這個(gè)情況?如何解決的?
感謝回復(fù)!
| 變量 | 參數(shù) |
|---|---|
| {$error} | 當(dāng)查詢不到數(shù)據(jù)時(shí),會(huì)返回錯(cuò)誤信息,調(diào)試模板時(shí)很有用哦(寫在list標(biāo)簽以外) |
| {$sql} | 顯示當(dāng)前查詢的sql語句,調(diào)試模板時(shí)候很有用哦(寫在list標(biāo)簽以外) |
你是不是該了return值?還要說一下標(biāo)簽是怎么寫的
回復(fù)@HelloWorld
{list action=search module=news order=$params.order id=$searchid total=$sototal page=1 pagesize=10 urlrule=$urlrule} 標(biāo)題:{$t.title} 地址:{$t.url} 更新時(shí)間:{$t.updatetime} 自定義更新時(shí)間:{dr_date($t._updatetime, 'Y-m-d')} {/list}后面加上{$error} {$sql},不顯示相關(guān)返回值,應(yīng)該不需要加return吧?
{list action=search module=news order=$params.order id=$searchid total=$sototal page=1 pagesize=10 urlrule=$urlrule} 標(biāo)題:{$t.title} 地址:{$t.url} 更新時(shí)間:{$t.updatetime} 自定義更新時(shí)間:{dr_date($t._updatetime, 'Y-m-d')} {/list} {$sql} {$error} {$debug}這樣一定行