Francesco
Francesco

Hi i'm developing a custom plugin with dog breeds. Each breed has his own image. Image file name are stored in the breed's table on the db, the file are in the model/breed/images in columns.yaml i have the image colums set as partial and in the partial i have

<img src="images/<?= e($value) ?>" style="width:40px; height:40px; alt="<?= e($record->title) ?>" title="<?= e($record->title) ?>"/>

in the rendered html i have

<img src="images/pointer.jpg" style="width:40px; height:40px; alt=" english="" pointer"="" title="English Pointer">

what's the best way to handle this? how do I get the full path to the image?

1-1 of 1