You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find any example but i think it must be possible somehow.
Also, what about array literals?
What i am looking for is
{{ myClass.someMethod(['a' = 'b', 2, 3, 4]) }}
I assign my objects via render(). I can {% debug %} them, just not call any method.
I thought about making "MyClass" a filter collection, but then it is still not clear if i can set arrays inside the template to use them as option hashes. And it would be bad for a couple other inheritance related reasons.
Is this planned or already supported?
The text was updated successfully, but these errors were encountered:
I can't find any example but i think it must be possible somehow.
Also, what about array literals?
What i am looking for is
I assign my objects via
render()
. I can{% debug %}
them, just not call any method.I thought about making "MyClass" a filter collection, but then it is still not clear if i can set arrays inside the template to use them as option hashes. And it would be bad for a couple other inheritance related reasons.
Is this planned or already supported?
The text was updated successfully, but these errors were encountered: