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) . ')';
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:
I don't understand/see an advantage, when I just call a phptal_tales()
which seems to be just a wrapper...
PHPTAL mailing list