Re: [SMARTY] cant get it right

From: Date: Sun, 28 Nov 2004 20:27:39 +0000
Subject: Re: [SMARTY] cant get it right
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12004@lists.php.net to get a copy of this message
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

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