Jump to content

Variables, file_exist et smarty


Recommended Posts

Bonjour à tous,

 

Voilà j'utilise actuellement le code suivant pour afficher les photos des catégories :

 

{if isset($smarty.get.id_category)}
<img src="img/c/{$smarty.get.id_category}-category.jpg">
{/if}

 

J'aimerai cependant y intégrer :

{if file_exists()}

 

Mais je n'arrive pas à organiser tout ça avec assign et la variable chemin du fichier.

 

Pourriez vous m'aider ?

 

Merci

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...