1
MS-2001
php in templates
  • 2004/11/6 18:05

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


i want to display the current year in my theme.html. does anyone know how to do that?

<?php echo date("Y"); ?> isnt working :-/

2
MS-2001
Re:php in templates
  • 2004/11/6 18:37

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


ok, someone told me its
<{$smarty.now|date_format:"%Y"}>

and that works fine ;)

3
zANavAShi
Re:php in templates
  • 2006/1/6 6:00

  • zANavAShi

  • Just popping in

  • Posts: 28

  • Since: 2005/5/6 5


Whew!!! I was so glad to find this today!

Thanks a bunch and please pass along some extra thanks to the "someone" who told you this very useful piece of code.