mikebernat
Posts: 2
|
| Posted: 04/25/2008, 1:08 PM |
|
I have 3 sections on my page that uses $Tpl->parse() and 2 of them work great. The third is inside a panel and does not work. When the page renders the space is blank. I've printed out the values I'm trying to $Tpl->setvar() and they do exist and are valid.
events.php
$sql = "SELECT * from table";
$db2 = new clsDBConnection1;
$db2->query($sql);
while ($db2->next_record()) {
// echo $db2->f("function_name");
$Tpl->SetVar("link_title", $db2->f("function_name"));
$Tpl->Setvar("link_url", $db2->f("community_page_name"));
$Tpl->parse("Apply");
}
html
<!-- BEGIN Apply -->
<li class="menuItem"><a href="{link_url}">{link_title}</a></li>
<!-- END Apply -->
Is this a bug or am I doing something wrong? I'm using the latest version of CCS 3.x
|