[TYPO3-english] FAL: Right way of doing?
Mikel
lists at con-version.com
Fri Mar 22 19:13:39 CET 2013
Great, that worked. Thanks.
Just a little typo -->
makeInstance('TYPO3\\CMS\\Core\\Resource\\FileCollectionRepository');
Have a good time in Bochum.
Mikel
Am 22.03.13 18:18, schrieb Benjamin Mack:
> Hey mikel,
>
> here you go.
>
> --------------
>
> $collectionRepository =
> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\\TYPO3\\CMS\\Core\\Resource\\FileCollectionRepository');
> $collection = $collectionRepository->findByUid($myUid);
> $collection->loadContents();
>
> $files = $collection->getItems();
> foreach ($files as $fileObject) {
> // do my thing
> }
>
> --------------
> All the best,
> Benni.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list