nessuno nobody
unread,Dec 7, 2011, 4:16:42 PM12/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to raintpl
Hello,
I've got a draw call in a simple loop.
I collect the variables into an array ($arr) and i do:
for(bla; bla; bla) {
$message_from_db = $query;
$vals['bli'] = $message_from_db;
...
$tpl->assing($vals);
$tpl->draw('template');
}
So, i collect all the messages ( that are different) with queries, but
when I call $tpl->draw('template');
I have n times the first message. But, if i edit the code in this way:
for(bla; bla; bla) {
$message_from_db = $query;
$vals['bli'] = $message_from_db;
...
print_r($vals); //HERE
$tpl->assing($vals);
$tpl->draw('template');
}
I can see that all the data in the array are different. So everything
work except the draw call.
How can i solve?