prestashop .tpl 中的 Smarty,如何只打印值而不是完整数组
Smarty in prestashop .tpl, how to print only the value, not the full array
我只想打印此结果的值 "data" :
$ZC_HEALTHBAND_DATA Smarty_Variable Object (3)
->value = Array (1)
0 => Array (3)
id => "3"
option => "ZC_HEALTHBAND_DATA"
data => "<table width="100%"><tr><td></td><td ..."
->nocache = false
->scope = "/..."
我试过使用 {$ZC_HEALTHBAND_DATA|@print_r} 但那会同时打印数据和数组 ...
Array ( [0] => Array ( [id] => 3 [option] => ZC_HEALTHBAND_DATA [data] =>
<table width="100%"><tr><td></td><td ...
)) 1
我只想打印 :
<table width="100%"><tr><td></td><td ...
谢谢
是二维数组:
{$ZC_HEALTHBAND_DATA[0].data}
我只想打印此结果的值 "data" :
$ZC_HEALTHBAND_DATA Smarty_Variable Object (3)
->value = Array (1)
0 => Array (3)
id => "3"
option => "ZC_HEALTHBAND_DATA"
data => "<table width="100%"><tr><td></td><td ..."
->nocache = false
->scope = "/..."
我试过使用 {$ZC_HEALTHBAND_DATA|@print_r} 但那会同时打印数据和数组 ...
Array ( [0] => Array ( [id] => 3 [option] => ZC_HEALTHBAND_DATA [data] =>
<table width="100%"><tr><td></td><td ...
)) 1
我只想打印 :
<table width="100%"><tr><td></td><td ...
谢谢
是二维数组:
{$ZC_HEALTHBAND_DATA[0].data}