[TYPO3-mvc] imageViewHelper: "Could not get image resource for ..."

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Sun May 30 17:40:57 CEST 2010


Am 30.05.2010 17:28, schrieb Henjo Hoeksma:
> My Fluid looks like this:
> <f:image src="{product.image}" width="50" alt="{product.name}" />
>
> My Model uses:
> /**
> * Image of the product
> * @var string
> */
> protected $image;
>
> What am I missing?

I think you need to provide the full path for the viewhelper, like:

<f:image src="uploads/my_extension/pics/{product.image}" width="50" 
alt="{product.name}" />

Regards,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list