Smarty-2.6.1

From: Date: Mon, 02 Feb 2004 03:09:20 +0000
Subject: Smarty-2.6.1
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358678@lists.php.net to get a copy of this message
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. -- Best regards, Igor. mailto:rad_igor@ua.fm

« previous php.doc (#969358678) next »