RE: [SMARTY] Associative array question

From: Date: Mon, 10 Jun 2002 21:58:50 +0000
Subject: RE: [SMARTY] Associative array question
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4755@lists.php.net to get a copy of this message
<?php require_once('Smarty.class.php'); $t = new Smarty; $t->assign(array( 'foo' => array ('A' => 'im a A', 'B' => 'im a B') ,'ind' => 'B' )); $t->display('test.tpl'); ?> with test.tpl = {$foo.$ind} produced im a B as expected. I belive this feature of the Smarty template syntax (indexes as other template vars) was only added in the last release or so. Jason __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

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