Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problème foreach tableau

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
airGuillaume
Smarty n00b


Joined: 05 Jan 2011
Posts: 2

PostPosted: Wed Jan 05, 2011 2:59 pm    Post subject: Problème foreach tableau Reply with quote

Bonsoir,

Je rencontre actuellement un problème avec un foreach et je n'arrive pas à comprendre. Sans plus attendre, voici le code:

Code:
          {foreach from=$isubcategory key=keysub item=product name=products}
            {if $keysub eq 'productChildren'}
              {$product|var_dump}//me fait bien le var_dump et m'affiche tout avec short_description => blablabla

              {$product.short_description}//ne m'affiche rien
            {/if}
          {/foreach}


Je ne comprends pas pourquoi. Quelqu'un pourrait-il m'expliquer s'il vous plait?

Cordialement, Guillaume.
Back to top
View user's profile Send private message
airGuillaume
Smarty n00b


Joined: 05 Jan 2011
Posts: 2

PostPosted: Fri Jan 07, 2011 12:55 pm    Post subject: Reply with quote

Up... Ca serait vraiment gentil de vous pencher sur mon cas. Merci.
Back to top
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Mon Jan 10, 2011 1:55 pm    Post subject: Reply with quote

Bonjour,

Pourrais tu faire un copier collé de ton "{$product|var_dump}" ? Histoire de voir ce que ca devrait afficher

Merci
_________________
N'oubliez pas de mettre le tag "[Résolu]" sur vos post Smile
Back to top
View user's profile Send private message Send e-mail
Ruff-PXVI
Smarty n00b


Joined: 14 Mar 2009
Posts: 3

PostPosted: Sat Jan 22, 2011 9:49 pm    Post subject: Reply with quote

Ouai ou nous faire voir le résultat du var_dump($product) en PHP ca aiderait aussi.
Back to top
View user's profile Send private message Send e-mail
Mahindra
Smarty Rookie


Joined: 25 Aug 2011
Posts: 6

PostPosted: Mon Oct 03, 2011 6:24 am    Post subject: Problème foreach tableau Reply with quote

Le problème est que Jdownloader a fusionné toutes mes parties .xtm en un seul fichier à la fin de mon telechargement. Et je ne peut rien faire avec ce fichier, ni extraire, ni recoller. Que puis-je faire avec ce fichier fusionné ? Puis-je retrouvé mes parties .xtm que jai telechargé ?

Merci de ton aide.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP