Re: Smarty-2.6.1
| From: | Gabor Hojtsy | Date: | Mon, 02 Feb 2004 10:34:31 +0000 |
| Subject: | Re: Smarty-2.6.1 | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969358683@lists.php.net to get a copy of this message | ||
This is not a support forum. Please look at http://smarty.php.net for smarty support...
Goba
rad_igor@ua.fm wrote:
Hello, I have downloaded Smarty-2.6.1. Very good templates. But using it I have found one bug (I think that's bug) with {html_table tr_attr=...} For example this code does not change the colors of row in table. index.php: ---------- require('Smarty.class.php'); $smarty = new Smarty; $smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); $smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); $smarty->display('index.tpl'); index.tpl: ---------- {html_table loop=$data cols=4 tr_attr=$tr} But in Smarty-2.5.0 that was working. When I changed new file with old (from v.2.5.0) it began working.