Problems accesing Object from template

From: Date: Thu, 03 Apr 2003 12:06:59 +0000
Subject: Problems accesing Object from template
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1068@lists.php.net to get a copy of this message
Hi, I'm trying to access an object from within a template. That works fine, but when the proerty I'm trying to access is an array I get an error Msg from Smarty. I assigned the object by reference in the template I write {$object->property.item1} and i also tried {$object->property[item1]} Both gave me the same error: Fatal error: Smarty: [in mailings/edit_mailing.tpl line 5]: syntax error: unrecognized tag: $object->property[item] (Smarty_Compiler.class.php, line 381) in Smarty_Compiler.class.php on line 1857 Can anyone help me out please TIA, Michael

« previous php.smarty.dev (#1068) next »