[TYPO3-mvc] imageViewHelper: "Could not get image resource for ..."
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sun May 30 17:41:35 CEST 2010
Hi Henjo,
> I run into a fluid issue though when trying to use images. I get the
> error: "Could not get image resource for " followed by the filename.
>
> 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?
Does {product.image} already contain the full relative path to the
document root of typo3 (so including your upload folder)? If not, try this:
<f:image src="uploads/pics/{product.image}" width="50"
alt="{product.name}" />
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list