[TYPO3-english] FAL: Right way of doing?

Benjamin Mack benni at typo3.org
Fri Mar 22 18:18:49 CET 2013


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.


More information about the TYPO3-english mailing list