【发布时间】:2015-07-31 16:52:39
【问题描述】:
我对产品列表中的打印功能有一个问题:
{if isset($product.features)}
<div class="features">
{foreach from=$product.features item=feature}
<table class="feature-pl">
<tr>
<td class="fea-name">{$feature.name}</td>
<td class="fea-valu">{$feature.value}</td>
</tr>
</table>
{/foreach}
</div>
{/if}
但我只想打印其中的 2 个功能,我该怎么做呢?
【问题讨论】:
标签: php html prestashop