example not working...

From: Date: Tue, 03 Oct 2006 22:39:48 +0000
Subject: example not working...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13488@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#13488) next »