On the latest version of PHP when using: {$smarty.now|date_format:"%Y"}
The following warning is printed:
Function strftime() is deprecated in /vendor/smarty/smarty ...
I created plugins so I can add data to the templates initiated from the templates. One of the plugins has an external and not always stable data source. Now I want to trigger an error in the template ...
1. You don't need it if you want to use its methods in a template.
2. Make sure you're using last released Smarty version.
(3.1.33 at the moment of writing), and it is properly installed.