[TYPO3-mvc] How to transform objects to array

Xavier Perseguers xavier at typo3.org
Mon Jun 24 11:37:33 CEST 2013


Hi Stefan,

Stefan Kruse wrote:
> Hi, i use an external class to retrieve datas from  a solr server. This
> works fine, but the results are objects which I cant use in Fluid in a
> foreach loop. Is there an easy way to transform the objects in arrays? Or
> what could I do to use this in my Fluid Template? Thanks for help. Stefan

Your problem is not clear. You have objects, meaning you have an array
of objects and the foreach loop works but you cannot access properties
of your objects or the foreach loop itself does not work?

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-project-typo3v4mvc mailing list