Hi, Kornel Lesiński wrote: > Sorry, I've rushed with the answer. > > phptal_tales_myDate() is called at compile time only. It should not return > the date (because there isn't any value yet), but code that will generate > the date at run time. > > phptal_tales() returns code that will evaluate to the value. > > return 'date("o-m-d H:i:s", ' . phptal_tales($src, $nothrow) . ')';
OK. Could you explain to me, why I should write and use a custom phptal_tale() function, when I could do the same by just calling PHP directly (php: myFunction(value))? I don't understand/see an advantage, when I just call a phptal_tales() function, which seems to be just a wrapper... -- Regards, Igor _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal