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

From: Date: Thu, 03 Apr 2003 13:01:14 +0000
Subject: Re: [SMARTY-DEV] Problems accesing Object from template
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1071@lists.php.net to get a copy of this message
On Thu, Apr 03, 2003 at 02:33:29PM +0200, Michael wrote: > > I already did that, but the same error shows up :-( sure? i can reproduce your problem with 2.4.2, but not with 2.5.0RC2. > -----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 > > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP: People Hate Perl Kristian Köhntopp

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