RSS Feed/News Various templater array_* functions do not work with AbstractCollection

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,328
Points
823

Reputation:

I'm not sure if this is a bug or not, but in templates it can be hit or miss on if something is an array or an AbstractionCollection. It would be nice if the templater functions would smooth over the difference in the various array_* functions (both new and old).

Adding $array instance of AbstractCollection ? $array->toArray() : $array is much easier on the php side then reliably doing that in templates

Continue reading...
 
Status
Not open for further replies.
Top