Monday 15 December 2003 8:58:27 am
Hi, sorry for the delay. I've been really busy.
Anyway, Laurent, you misunderstood my question.
Nevertheless, I found a solution for making it so I'm posting in case it's useful for other people What I needed was to display the date of tomorrow, i.e. today is December 15, I need to write December 16. Well it's kind of a dirty hack but it's the best I could find. Firs of all edit eztemplateautoload.php, located in /kernel/common, and add the following function
function tomorrow()
{
$tomorrow = mktime (0,0,0,date("m") ,date("d")+1,date("Y"));
return ($tomorrow); }
Then edit template.ini locate under /settings:
Locate the section PHPOperatorList[] and add the line PHPOperatorList[tomorrow]=tomorrow now you can call the function in your template using something like this {tomorrow()|datetime(custom,"%l %j %F %Y")}
I hope this is useful for other people. By the way, if you have a better way to do this thing, post it ;)
|