create a file object by the files path?
I installed the "random image block"
The "view.php" works with a variable: "$imagePath"
(that means: "/application/files/1815/1161/6070/enigokwag_eki.jpg")
Now I need to get the description of the file at the end of that link.
I tried: "$f = (getFileID($imagePath);" but I guess this is complete nonsens...
Looking forward for some help.
Core Version - 18.104.22.168
Thank You! That works great.
I even can put the "$fv" in a different div to display the description in a little overlay.
But how can php know, which file description is needed? Is it the last one in the code before?
$this->set('somevariable', 'value of the variable');
Then $somevariable is available to the view