lundi 20 avril 2015

How to show image using smarty, when it is stored on amazon?

My images are stored on Amazon servers and I have to display them (using smarty) in a smarty template.
currently I am able to show an image using following PHP code:

header('Content-type:image/jpeg');  
header("Content-disposition: inline; filename=\"".basename($formatted_filename)."\"");

How could I show it on smarty page?

Aucun commentaire:

Enregistrer un commentaire