Re: [SMARTY] allways smarty conf and php
| From: | Jacques Jocelyn | Date: | Sat, 05 Apr 2003 17:51:32 +0000 |
| Subject: | Re: [SMARTY] allways smarty conf and php | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9125@lists.php.net to get a copy of this message | ||
Hello Elgi,
Saturday, April 5, 2003, 6:42:42 AM, you wrote:
E> Hello smarty-general,
E> i have in conf file this :
E> sign = """... Copyright © 2003 ..."""
E> i want :
E> 2003<? if (date("Y")!=2003) echo "-".date("Y"); ?>
E> how make this ?
Elgi, within the template, you might want to do this :
{$smarty.now|date_format:"%Y"}
that will display the current year
Best regards,
Jacques JOCELYN
--------------------------
Etes-vous bien payé ?
http://www.salaireonline.com