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

From: Date: Thu, 03 Apr 2003 12:33:29 +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-1070@lists.php.net to get a copy of this message
I already did that, but the same error shows up :-( I've stopped 985 spam messages. You can too! Get your free, safe spam protection at http://www.cloudmark.com/spamnetsig/ -----Original Message----- From: messju mohr [mailto:messju@lammfellpuschen.de] Sent: jueves, 03 de abril de 2003 14:23 To: Michael Hauptmann Cc: smarty-dev@lists.php.net Subject: Re: [SMARTY-DEV] Problems accesing Object from template 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 (#1070) next »