[TYPO3-mvc] imageViewHelper: "Could not get image resource for ..."
Henjo Hoeksma
me at henjohoeksma.nl
Sun May 30 19:22:27 CEST 2010
Franz Koch <typo3.RemoveForMessage at elements-net.de> wrote:
> 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}" />
>
Hi Franz, thanks for replying. No it doesn't. How could I set it to be
like that so I can keep my fluid nice? :-)
Thanks,
Henjo
More information about the TYPO3-project-typo3v4mvc
mailing list