pixAN Posted March 1, 2019 Share Posted March 1, 2019 Bonjour , J'ai une question sur un foreach, a quoi sert l'attribut name ? quel est son utilité ? Ex : {foreach from=$images item=image name=thumbnails} Merci pour votre réponse. Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 1, 2019 Share Posted March 1, 2019 https://www.smarty.net/docsv2/fr/language.function.foreach.tpl 1 Link to comment Share on other sites More sharing options...
pixAN Posted March 1, 2019 Author Share Posted March 1, 2019 Oui merci pour le lien mais j'ai du mal à comprendre ce point justement. Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 1, 2019 Share Posted March 1, 2019 Que ne comprenez-vous pas, car tout est expliqué avec des exemples très clair. Link to comment Share on other sites More sharing options...
pixAN Posted March 1, 2019 Author Share Posted March 1, 2019 oui je viens de comprendre que les propriétés sont : index, first, last ... J'avais pas lu jusqu'au bout... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now