Re: Variable modifier parse error?

From: Date: Mon, 23 Jul 2001 18:50:25 +0000
Subject: Re: Variable modifier parse error?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1254@lists.php.net to get a copy of this message
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

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