RE: [SMARTY] problem with array with only one index

From: Date: Wed, 14 Aug 2002 16:28:26 +0000
Subject: RE: [SMARTY] problem with array with only one index
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5711@lists.php.net to get a copy of this message
Yes i agree, thats an option, but why isn't mine solution working? I'm using the correct syntax, right? Peter -----Original Message----- From: Jason Sweat [mailto:jsweat_php@yahoo.com] Sent: woensdag 14 augustus 2002 18:21 To: peter@clueless.be Cc: Smarty General Subject: Re: [SMARTY] problem with array with only one index Since you indicate that you do not need it, why not remove the additional dimension on the newsListData array when you assign it to smarty? $t->assign('newsListData', $newsListData[$_GET['news_id']]); and in the template: {$newsListData.news_topic} __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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