Replies: 2 comments 4 replies
-
Hi @SinusPi! Please see https://smarty-php.github.io/smarty/stable/designers/language-builtin-functions/language-function-assign/#examples for some examples on how to use |
Beta Was this translation helpful? Give feedback.
4 replies
-
@SinusPi, I submitted #986 to bring back support for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used to abuse the assignByRef function to create a way for templates to "talk back" to the calling code, not merely returning a block of rendered HTML, but a few variable values, too - like giving the templates a way to return a tuple instead of a plain string, if they were functions.
So with assignByRef gone in new Smarty versions, what would be the best approach to let templates return "something more"?
I'm almost set on writing some simple plugin that would store values "set" by the template, but I wonder if there's a better idea.
Beta Was this translation helpful? Give feedback.
All reactions