Re: [SMARTY-DEV] (fwd) Smarty-2.6.1

From: Date: Mon, 02 Feb 2004 06:50:23 +0000
Subject: Re: [SMARTY-DEV] (fwd) Smarty-2.6.1
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2093@lists.php.net to get a copy of this message
Hello, this is a known bug in Smarty-2.6.1. It is fixed in CVS. you can take the file libs/plugins/function.html_table.php from the Smarty-2.6.0 distribution or take the one from CVS at: http://cvs.php.net/cvs.php/smarty/libs/plugins/function.html_table.php Both versions should work flawlessly with Smarty-2.6.1 . Sorry for the inconvinience. greetings messju On Sun, Feb 01, 2004 at 04:22:38PM -0800, Andrei Zmievski wrote: > Delivered-To: andrei@pair2.php.net > Delivered-To: alias-scan-andrei@php.net > Delivered-To: andrei@php.net > Date: Mon, 2 Feb 2004 02:11:25 +0200 > From: rad_igor@ua.fm > X-Mailer: The Bat! (v2.01) UNREG / CD5BF9353B3B7091 > Reply-To: rad_igor@ua.fm > X-Priority: 3 (Normal) > To: andrei@php.net > Subject: Smarty-2.6.1 > X-Spam-Level: > X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on colo > X-Spam-Status: No, hits=-4.7 required=5.0 tests=BAYES_00,NO_REAL_NAME > autolearn=no version=2.63 > > Hello andrei, > > 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.smarty.dev (#2093) next »