example not working...
[email protected] (Michael Kolakowski) Tue, 03 Oct 2006 16:39:48 -0600
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I cannot seem to get the third table in this example to work:
http://smarty.php.net/manual/en/language.function.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