Forums Sign Up Reply Search Statistics
Fast Template GraFX Software Solutions - Forum / Fast Template /

flex table example

 
Author rr1024
Forums Member
#1 Posted: 8 Dec 2007 19:47:49
Reply 
I was playing around with it and what I wanted to do was a simple example of
parse and return then put the table in some value of another templete

//$ft->parse('MAIN', "table");
//$ft->FastPrint('MAIN');
$ft->parse_and_return('table');

Also tried

$ft->parse_and_return('MAIN');

AND
$ft->parse('MAIN', "table");
$ft->parse_and_return('MAIN');

They all produce a blank page using

echo fillTable($headers, $cells, $caption, $rows, $cols);

or print


The reason I'm doing this is I was going to use the same code in one of my templets and it seems that when ever I call the function to fill the table
then niether my header for footer templates get parsed.
Author rr1024
Forums Member
#2 Posted: 8 Dec 2007 20:52:32
Reply 
Something I did note is the fast template class

$field{0} == '.'

I was getting php warnings on this so I changed it to $field[0] == '.' because php said that {} will not be used in php6
Author rr1024
Forums Member
#3 Posted: 8 Dec 2007 20:53:35
Reply 
I don't think that has anything to do with the problem?
Author software
Admin
#4 Posted: 17 Dec 2007 16:30:36
Reply 
I am not sure that I fully understand your problem but I try to reply somehow;).
If you use $ft->parse_and_return you should expect a return value.
In the terms of the flex_table example you can use
1) //$ft->FastPrint('MAIN');
echo $ft->parse_and_return('MAIN');
......

just with
fillTable($headers, $cells, $caption, $rows, $cols);
OR

2) //$ft->FastPrint('MAIN');
return $ft->parse_and_return('MAIN');
.......
echo fillTable($headers, $cells, $caption, $rows, $cols);
Author software
Admin
#5 Posted: 17 Dec 2007 16:41:25
Reply 
as for this
$field{0} == '.'

thanks anyway ;)
We will fix this in our future release.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.