-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function plugin return an array, modifier plugin is not falling. #228
Comments
All tags including plugins should always return a string or nothing. I agree that the compiled code of Smarty 2 does create in your sense an expected result. I will look into it. |
@uwetews I do assign to template variable be able to receive array in modifier. |
…n the plugin does return an array #228
Even that I think that normally plugins should return always strings I did fix the code to Smarty 2 behavior. |
Always thank you , everyone .
One of the failure has occurred.
If example_function returns an array , the array is not falling into example_modifier.
smarty2, the array is falling into example_modifier.
template:
smarty3:
smarty2:
example_modifier:
example_modifier is return 'String[5] 'Array'.
How can I fix it ?
The text was updated successfully, but these errors were encountered: