array display

From: Date: Mon, 12 Nov 2001 19:59:47 +0000
Subject: array display
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1909@lists.php.net to get a copy of this message
Hello everybody, My brain is break today, I need your help. This is the information on the Debug Console : {$menu}
                              Array (7)
                              type => Array (5)
                                0 => text
                                1 => link
                                2 => line
                                3 => space
                                4 => image
                              name => Array (5)
                                0 => mon texte
                                1 => mon lien perso
                                2 => empty
                                3 => empty
                                4 => mon texte
                              position => Array (5)
                                0 => normal
                                1 => normal
                                2 => empty
                                3 => empty
                                4 => normal
                              url => Array (5)
                                0 => empty
                                1 => monlien.html
                                2 => empty
                                3 => empty
                                4 => http://smarty.myweb.fr/news/
link => Array (5)
                                0 => empty
                                1 => empty
                                2 => empty
                                3 => empty
                                4 => images/mon_image.png
                              width => Array (5)
                                0 => empty
                                1 => empty
                                2 => empty
                                3 => empty
                                4 => 90
                              height => Array (5)
                                0 => empty
                                1 => empty
                                2 => empty
                                3 => empty
                                4 => 30
And this my template : {section name=nav loop=$menu[type]}
type:           {$menu[type][nav].type} <br />
name:           {$menu[type][nav].name} <br />
position:       {$menu[type][nav].position} <br />
url:            {$menu[type][nav].url} <br />
link:           {$menu[type][nav].link} <br />
width:          {$menu[type][nav].width} <br />
height:         {$menu[type][nav].height} <br /><br />
{/section} and nothing is displaying... for this part of the template... What's wrong ? Thanks Sylvain.B.

« previous php.smarty.general (#1909) next »