[TYPO3-mvc] Where are data definitios are located e.g. \TYPO3\CMS\Core\Resource\ResourceInterface

Hans-Georg Althoff hgalt at gmx.net
Fri Dec 23 14:57:45 CET 2016


Hi Frans,

I started with a new BE extension, created with the Extension Builder. But the Extension Builder currently don't support images. Therefore I try to build my own ViewHelper to select and store the image.
The Images are already located under fileadmin and its easy th pick the filename of the image, but I have to provide a FileReference object.

I found a FileReference function setOriginalResource which requires a \TYPO3\CMS\Core\Resource\ResourceInterface $originalResource parameter.
I guess, that it should be possible with the filename to generate a $originalResource object. Maybe it is a array, but I'm not sure and I currently have no information, how to construct this object, because I can't find any decription about it.

This problem I have always with the TYPO3-classes. Even I look at the parants classes.
If I would know, how to find the constructors of the parameters, it would a lot of things much more easier.

Thanks for your help,
Georg


More information about the TYPO3-project-typo3v4mvc mailing list