Hi!
I have this problem. I print result of my query as cicle. I nedd to concatenate to $doSet array an other array $pag that I need to print only one.
If I insert $pag in my $record array every cicle of function I print $pag value. I want see it only one.
function Query()
$doSet = new DataObjectSet();
foreach($rec as $key)
{
$record = array(
'Id' => $key['id'],
'Nome' => $key['mm_tourist_name'],
);
$doSet->push(new ArrayData($record));
}
return $doSet;
<% if Query %>
<ul id="liste">
<% control Query %>
<li>
<div class="..">$Nome</div>
<div class="..">$Id</div>
</li>
$pag
<% end_control %>
</ul>
<% end_if %>