Is there a plugin of function in smarty, or anything else i can to do make smarty convert unix timestamp to the “weeks/days/hours left until that date”? I know i can do it in php, but it is more convenient to do it in smarty.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you know how to do it in PHP, why don’t you just make it available to smarty as a function or modifier plugin? See Extending Smarty With Plugins.
(and no, smarty doesn’t come with a core plugin that does what you need)