Hi,
I cannot seem to get the third table in this example to work:
http://smarty.php.net/manual/en/lang...html.table.php
I am using the latest smarty and php5 on a Mac. The problem is the cols
attribute. I typed it in exactly like the example and I get a divide by
zero error. I also tried declaring an array, with the col names, in my
php file. Then I tired using the array as such in my template file:
{html_table loop=$tableData cols=$colNames tr_attr=$colors}
At which point the table finally showed up, BUT there was only one
column...and none of the column names were there. The alternating
colors worked, however.
Thanks,
Michael Kolakowski