Re: [SMARTY] html_table frustration

From: Date: Wed, 12 Nov 2003 09:01:34 +0000
Subject: Re: [SMARTY] html_table frustration
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10522@lists.php.net to get a copy of this message
On Wed, Nov 12, 2003 at 11:30:21AM +0300, Zoran Knezevic wrote: > Hi all! > > U am sorry but I am really in the trouble. In the > moment I am fighting very stiff deadline. First I made > my application everything works fine now I am > implementing style. My main problem is inability to > pass attributes to the html_table function > > {html_table loop=$oglasitable table_attrs='border=\"0\" > cellpadding=\"0\" cellspacing=\"0\"' > td_atrrs='valign=\"top\"' } > {* That does not work *} > > {html_table loop=$oglasitable table_attrs='border="0" > cellpadding="0" cellspacing="0"' > td_atrrs='valign="top"' } > {* That does not work either *} it's called table_attr and not table_attrs. it's called td_attr and td_atrrs. that should get you going. > I tried tutorial example with border="0" and didn't work. > > I use Smarty 2.6 RC2 > > Please help me ASAP. > > Thanks. > > P.S. I hope that I will not have to make another > template and change all other templates that use > html_table. find . -name "*.tpl" |perl -pi.bak -e 's#(td|table)_attrs=#$1_attr=#' (done OTOH, no warranty!)

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