Hi, i have Joomla! 3.2.0 and K2 2.6.7.
In category_item.php i add code:
$extrafieldslabels = array();
foreach($this->item->extra_fields as $itemlabel);
{
$extrafieldslabels[$itemlabel->id] = $itemlabel->name;
}
And in code site add:
<?php if ($$itemlabel[1] != "") {echo $itemlabel[1];}?>
but i have error:
Warning: Invalid argument supplied for foreach() in /enklawa/templates/enklawa/html/com_k2/mieszkania/category_item.php on line 17
In item.php it's all ok in the same code.
Why? Please help.
Sorry byt my english is not well.
In category_item.php i add code:
$extrafieldslabels = array();
foreach($this->item->extra_fields as $itemlabel);
{
$extrafieldslabels[$itemlabel->id] = $itemlabel->name;
}
And in code site add:
<?php if ($$itemlabel[1] != "") {echo $itemlabel[1];}?>
but i have error:
Warning: Invalid argument supplied for foreach() in /enklawa/templates/enklawa/html/com_k2/mieszkania/category_item.php on line 17
In item.php it's all ok in the same code.
Why? Please help.
Sorry byt my english is not well.