Re: [SMARTY-DEV] Problems accesing Object from template

From: Date: Thu, 03 Apr 2003 12:22:35 +0000
Subject: Re: [SMARTY-DEV] Problems accesing Object from template
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1069@lists.php.net to get a copy of this message
On Thu, Apr 03, 2003 at 02:06:59PM +0200, Michael Hauptmann wrote: > 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 with Smarty-2.5.0RC2 this should work as you expect. give it a try, it's pretty stable in my opinion. > TIA, > Michael

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