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

Problem after update with $_smarty_vars

 
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 -> General
View previous topic :: View next topic  
Author Message
_bolek_
Smarty n00b


Joined: 18 Mar 2017
Posts: 2

PostPosted: Sat Mar 18, 2017 2:51 pm    Post subject: Problem after update with $_smarty_vars Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Mar 19, 2017 12:35 am    Post subject: Reply with quote

You're using an undocumented feature. Don't do it again.
Back to top
View user's profile Send private message
_bolek_
Smarty n00b


Joined: 18 Mar 2017
Posts: 2

PostPosted: Tue Mar 21, 2017 4:41 pm    Post subject: Reply with quote

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
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 -> General 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