Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Php echo present year

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-08-2007, 04:45 PM
 
pteerapr pteerapr is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 48
 

Default Php echo present year

Hello,

I want to be able to show present year on everypage of my website. I put this code in skin1/customer/home.tpl

<?php echo date('Y'); ?>

What do I have to do to make php code work in .tpl file.


Thank you,
Pete
__________________
x cart 4.4.3 gold Unix U.S.A
Reply With Quote
  #2  
Old 01-08-2007, 06:15 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Php echo present year

Code:
{$smarty.now|date_format:"%Y"}
http://smarty.php.net/manual/en/language.modifier.date.format.php
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 01-09-2007, 07:42 AM
 
pteerapr pteerapr is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 48
 

Default Re: Php echo present year

Thank you
__________________
x cart 4.4.3 gold Unix U.S.A
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:44 PM.

   

 
X-Cart forums © 2001-2020