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

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: strftime() is deprecated
TedK

Replies: 1
Views: 13251

PostForum: Bugs   Posted: Tue Mar 15, 2022 2:57 pm   Subject: strftime() is deprecated
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 ...
  Topic: Error handing when using plugins
TedK

Replies: 1
Views: 20713

PostForum: Plugins   Posted: Tue Sep 24, 2019 11:44 am   Subject: Error handing when using plugins
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 ...
  Topic: Smarty_Internal_Method_Register_Object
TedK

Replies: 3
Views: 17258

PostForum: Plugins   Posted: Sun Sep 15, 2019 5:51 pm   Subject: Smarty_Internal_Method_Register_Object
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.

1. How ...
  Topic: Smarty_Internal_Method_Register_Object
TedK

Replies: 3
Views: 17258

PostForum: Plugins   Posted: Thu Sep 12, 2019 1:13 pm   Subject: Smarty_Internal_Method_Register_Object
Hello,

I am new to the use of objects and functions with Smarty. So I follow the documentation and simply started with this:

class My_Object {
function meth1($params, &$smarty_o ...
 
Page 1 of 1
All times are GMT
Jump to:  


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