Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

madsem's avatar

@36864 so I've been playing around a bit with this awesome flattening method you made there for me, and this already does the trick.

I just have to restructure the partials a bit, not there 100% but I can see this will def. work.

Thanks so much man. This was really nice helping me like that :) Wish I could literally buy you 1- 25 beer(s) after work, because you deserve that and more!

36864's avatar

The partials should get a bit simpler now, all you have to do is check if the current element is a collection. If it is, print a row and include the group view. If it isn't, include the leaf view.

Glad I could help.

1 like
madsem's avatar

That is exactly what I'm doing now. Also learned a ton on how to better approach data representation :)

So really, thanks a lot man. You helped more than you know

Previous

Please or to participate in this conversation.