In Symfony 4 I have a "photos" entity, so each photo entity has it's s3 key stored in the datbase.
In passing these photos to my twig file, you can't render it because all it has is the s3 key, and you have to use the s3 key to grab the physical file from the s3 server.
So do I have to build my own custom data structure/array and loop through my photo entities, and grab each photo from the s3 server, and build it out that way?
You can't physically grab an s3 file from within twig can you?
Or is that how you do it? Can you link directly to an s3 file and display it in twig?
Comments
Post a Comment