|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
_bolek_ Smarty n00b
Joined: 18 Mar 2017 Posts: 2
|
Posted: Sat Mar 18, 2017 2:51 pm Post subject: Problem after update with $_smarty_vars |
|
|
Hello,
i used in one project old smarty 3.1.21, after update got error:
Quote: | Access to undeclared static property: Smarty::$_smarty_vars
|
I found that in 3.1.28 this variable was removed but in changelog there is no mention, not only that there is no info ho to replace old method to new one. i use $_smarty_vars to get capture like:
in class
Code: | !empty(Smarty::$_smarty_vars['capture']['from']) |
in tpl:
Code: | {capture name="from"}...{/capture} |
Maybe i'm stupid but searched doc and even use uncle google and nothing :/
So my question is how to do this in new smarty?
PS: it would be nice if you place deprecate information in code and info about how to change old functions/vars like before and after new release. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Mar 19, 2017 12:35 am Post subject: |
|
|
You're using an undocumented feature. Don't do it again. |
|
Back to top |
|
_bolek_ Smarty n00b
Joined: 18 Mar 2017 Posts: 2
|
Posted: Tue Mar 21, 2017 4:41 pm Post subject: |
|
|
AnrDaemon wrote: | You're using an undocumented feature. Don't do it again. |
yes i know but is there any solution that is in docs ? |
|
Back to top |
|
|
|
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
|