性夜影院爽黄a爽免费视_一级特黄aaa大片在_一级做a爰片久久毛片免费_奇米精品一区二区三区在线观看 - jizz国产

product_list循環(huán)里如何調(diào)用defined 循環(huán)?

創(chuàng)建時間:2020-06-27 00:33發(fā)布者:招投標(biāo)資質(zhì)網(wǎng)點(diǎn)擊數(shù):1419
product_category.php里

$product_list[] = array (
"id" => $row['id'],
"cat_id" => $row['cat_id'],
"name" => $row['name'],
"price" => $price,
"thumb" => $dou->dou_file($row['image'], true),
"image" => $dou->dou_file($row['image']),
"defined" => $dou->format_defined($row['defined']),
"add_time" => $add_time,
"add_time_short" => $add_time_short,
"add_time_year" => $add_time_year,
"add_time_day" => $add_time_day,
"summary" => $row['summary'],
"description" => $description,
"url" => $url
);


// 獲取產(chǎn)品信息
$product = $dou->get_row('product', '*', "id = '$id'");
$smarty->assign('defined', $dou->format_defined($product['defined']));

product_category.dwt里

<!-- {foreach from=$product_list name=product_list item=product} -->
<h4>{$product.name}</h4>
<!-- {foreach from=$defined name=defined item=defined} -->{$defined.arr}:{$defined.value}<!-- {/foreach} -->
<!-- {/foreach} -->
回答 我也遇到這個問題(0)
招投標(biāo)資質(zhì)網(wǎng)2020-06-27 12:34回答
<!-- {foreach from=$defined name=defined item=defined} -->{$defined.arr}:{$defined.value}<!-- {/foreach} --> 不生效
有用(0) 沒用(0)