raintpl3
raintpl3 copied to clipboard
Parsing timestamps has become extremely difficult...
RainTPL 2 parsed {'d-m-Y'|date:$timestamp}. This is a simple workaround for date ($format, $timestamp), as RainTPL modifiers always uses the initial value as first method argument.
Now, RainTPL 3 does not parse these expressions at all, just only when there is a $ right after the { character.
Can you please re-add the expression given above? Thanks in advance.
We can as long as it won't break any back compatibility. I'll check to see if possible.
On Wed, Dec 31, 2014 at 3:22 PM, Xesau [email protected] wrote:
RainTPL 2 parsed {'d-m-Y'|date:$timestamp}. This is a simple workaround for date ($format, $timestamp), as RainTPL modifiers always uses the initial value as first method argument.
Now, RainTPL 3 does not parse these expressions at all, just only when there is a $ right after the { character.
Can you please re-add the expression given above? Thanks in advance.
— Reply to this email directly or view it on GitHub https://github.com/rainphp/raintpl3/issues/167.
Nevermind, I found a better way of doing this:
{function="date ('d-m-Y', $timestamp)"}
Thanks anyways.