1
fluent
putting the date into theme.html
  • 2003/12/19 19:36

  • fluent

  • Just popping in

  • Posts: 43

  • Since: 2003/11/22



I want to put the date in a theme.html page and I've tried using {php} echo data("%Y"); {/php} but it doesnt work. Am I using the wrong tags to do this or is there another method? This is the method smarty's homepage suggested.

2
CBlue
Re: putting the date into theme.html

Put the code below into your theme.html file wherever you want the date to appear on the pages. I put mine below my logo but it can be put anywhere.


3
ackbarr
Re: putting the date into theme.html

I think the original method will work, but you need to use <{php}>...<{/php}> instead.

4
Draven
Re: putting the date into theme.html
  • 2003/12/19 21:19

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Here's what I use.

<{php}>
    echo 
date("D j, Y");
<{/
php}>

Login

Who's Online

486 user(s) are online (352 user(s) are browsing Support Forums)


Members: 0


Guests: 486


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Sep 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits