[TYPO3-mvc] imageViewHelper: "Could not get image resource for ..."
Henjo Hoeksma
me at henjohoeksma.nl
Sun May 30 19:20:46 CEST 2010
"Thomas \"Thasmo\" Deinhamer" <thasmo at gmail.com> wrote:
> 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
>
Hi thomas, thanks for replying.
I thought somehow it would be able to recognize is by default. Looking
at the blog example and other docu I checked didn't have a prefix of the
path.
I guess my understanding was wrong.
Henjo
More information about the TYPO3-project-typo3v4mvc
mailing list