|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
airGuillaume Smarty n00b
Joined: 05 Jan 2011 Posts: 2
|
Posted: Wed Jan 05, 2011 2:59 pm Post subject: Problème foreach tableau |
|
|
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 |
|
airGuillaume Smarty n00b
Joined: 05 Jan 2011 Posts: 2
|
Posted: Fri Jan 07, 2011 12:55 pm Post subject: |
|
|
Up... Ca serait vraiment gentil de vous pencher sur mon cas. Merci. |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Mon Jan 10, 2011 1:55 pm Post subject: |
|
|
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 |
|
Back to top |
|
Ruff-PXVI Smarty n00b
Joined: 14 Mar 2009 Posts: 3
|
Posted: Sat Jan 22, 2011 9:49 pm Post subject: |
|
|
Ouai ou nous faire voir le résultat du var_dump($product) en PHP ca aiderait aussi. |
|
Back to top |
|
Mahindra Smarty Rookie
Joined: 25 Aug 2011 Posts: 6
|
Posted: Mon Oct 03, 2011 6:24 am Post subject: Problème foreach tableau |
|
|
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 |
|
|
|
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
|