[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] cant get it right
From:       messju mohr <messju () lammfellpuschen ! de>
Date:       2004-11-28 20:27:39
Message-ID: 20041128202739.GB20193 () pharao ! serveftp ! org
[Download RAW message or body]


Hi,

On Sun, Nov 28, 2004 at 08:55:36PM +0100, Anders Gjermshus wrote:
> Hi.
> 
> I tried this for a time but I can't get it right. I hope someone here can
> help me.
> 
> I'm trying to make a user menu. I assign to arrays to smarty. One with
> headers and one with all the links that belongs to the headers.
> 
>  
> 
> Array
> (
>     [0] => Rights
>     [1] => Controlpanel
>     [2] => Users
> )
> 
>  
> 
>  
> 
> Array
> (
>     [0] => Array
>         (
>             [0] => Array
>                 (
>                     [title] => User rights
>                     [url] =>
> ./modules/bruker_adm/mod_permissions.php?sid=652c90168d3fdc48e5534c03883ac84
> 8&mode=find_user
>                 )
>         )
>     [1] => Array
>         (
>             [1] => Array
              ^^^ should start with zero

[... rest of example ...]
 
> Can someone explain to me why it returns that result to me?

if you use sections then arrays *always* have to be zero-based.

greetings
messju
 
> Thanks
> Anders

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic