Afficher un message
Vieux 03/10/2006, 23h39   #1
Michael Kolakowski
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut example not working...

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
  Réponse avec citation
 
Page generated in 0,04527 seconds with 9 queries