php数组smarty模板循环出来,不显示
数组类型$dijiaconfigData['lowestPriceList']:Array([0]=>Array([depDate]=>2015-10-12[ticket...
数组类型$dijiaconfigData['lowestPriceList']:
Array
(
[0] => Array
(
[depDate] => 2015-10-12
[ticketPrice] => 370.0
)
[1] => Array
(
[depDate] => 2015-10-12
[ticketPrice] => 370.0
)
)
-----------------------------------------------------
$shijianlist = array();
foreach($dijiaconfigData['lowestPriceList'] as $row){
$shijianlist[] = $row;
}
$smarty->assign("shijianlist",$shijianlist);
模板里:
<!--{foreach from=$shijianlist item=child name=childcur}-->
<I class=toc><a href="javascript:;" title="{$child.depDate}"><strong><i>¥</i>{$child.ticketPrice}</strong><span>{$child.depDate}</span></a></I>
<!--{/foreach}-->
这样写模板怎么输出不了 能帮我看下么 展开
Array
(
[0] => Array
(
[depDate] => 2015-10-12
[ticketPrice] => 370.0
)
[1] => Array
(
[depDate] => 2015-10-12
[ticketPrice] => 370.0
)
)
-----------------------------------------------------
$shijianlist = array();
foreach($dijiaconfigData['lowestPriceList'] as $row){
$shijianlist[] = $row;
}
$smarty->assign("shijianlist",$shijianlist);
模板里:
<!--{foreach from=$shijianlist item=child name=childcur}-->
<I class=toc><a href="javascript:;" title="{$child.depDate}"><strong><i>¥</i>{$child.ticketPrice}</strong><span>{$child.depDate}</span></a></I>
<!--{/foreach}-->
这样写模板怎么输出不了 能帮我看下么 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询