Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty 3.1 Modifiers Not Working

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
akg.2020
Smarty n00b


Joined: 22 Aug 2020
Posts: 1

PostPosted: Mon Aug 24, 2020 6:53 am    Post subject: Smarty 3.1 Modifiers Not Working Reply with quote

Hi,

I am using Smarty 3.1.34. But Some modifier not working like truncate / date_format / capitalize.

I am using date_format.

{$smarty.now|date_format:"%Y-%m-%d"}

But I got warning.

Warning: date_format() expects parameter 1 to be DateTimeInterface, string

Pls anyone give me solution.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Aug 26, 2020 1:46 pm    Post subject: Reply with quote

Please don't multipost. I've deleted your trash topics.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Aug 26, 2020 2:04 pm    Post subject: Reply with quote

It seems, your plugins directory misconfigured and Smarty falling back to existing PHP function by the same name.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP