Re: Variable modifier parse error?

From: Date: Mon, 23 Jul 2001 19:47:34 +0000
Subject: Re: Variable modifier parse error?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1258@lists.php.net to get a copy of this message
What version of Smarty are you using? 1.4.4 works fine for me in that regard. On Mon, 23 Jul 2001, Kamal Mahyuddin wrote: > Andrei, > > Here is a snippet from my template: > > {section name=article loop=$news} > {if %article.rownum% is odd} > <DIV CLASS="news-1"> > {else} > <DIV CLASS="news-2"> > {/if} > > <H3>{$news[article].title}</H3> > <P>posted by {$news[article].author} > on {$news[article].timestamp|date_format:"%A, %B %d, %Y"} > <P>{$news[article].cleanbody}</P> > > {if $news[article].numofcomments == 1} > <P><A > HREF="comments.php?newsid={$news[article].id}&{$sid}">1 > comment</A></P> > {else} > <P><A > HREF="comments.php?newsid={$news[article].id}&{$sid}"> > {$news[article].numofcomments|default:"Add your"} > comments</A></P> > {/if} > > </DIV> > {/section} > > The error happens at the date_format modifier and if i'm not mistaken, > the default modifier also. > > Regards, > Kamal > > > > --- > You are currently subscribed to smarty as: andrei@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at ¾ > ‰†œ¤7'ÆêòI¦¤http://www.phpinsider.com/php/code/Smarty/ -Andrei "In this age, which believes that there is a short cut to everything, the greatest lesson to be learned is that the most difficult way is, in the long run, the easiest." -Henry Miller, The Books in My Life

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