CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Template Parse() function doesn't work inside panels

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.