[TYPO3-dev] FAL image path in Extbase Controller

Klaus Heuer post at heuer-illustration.de
Sat Mar 29 19:22:11 CET 2014


Hi Frans,
thanks a lot, I tried this already but didn's see the wrong php doc - 
now everthing works fine ... even in 6.2 ;)

gr Klaus
> Hi Klaus,
>
> This works all out of the box.
>
> The phpdoc headers of your model doesn't seem to be correct.
> The return of getImage should be the same type as $image.
>
> Be aware that a FileReference isn't the the real file but a reference to
> the file. And the extbase models are just wrappers around the core File and
> FileReference models.
>
> So if the image works in fluid try this
> $myObject->getImage()->getOriginalRecource()->getPublicUrl()
>
> Gr. Frans
> Op 29 mrt. 2014 17:58 schreef "Klaus Heuer" <post at heuer-illustration.de>:
>
>




More information about the TYPO3-dev mailing list