Re: Assigning objects to Smarty ?

From: Date: Thu, 26 Apr 2001 12:46:28 +0000
Subject: Re: Assigning objects to Smarty ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-594@lists.php.net to get a copy of this message
Agreed! I had to actually put out a layer of classes on my site and do associative arrays instead. I would definitely prefer to pass an array of objects. ----- Original Message ----- From: "Alain Fontaine" <alain@nvision.lu> To: "Ivo Jansch" <ivo@ibuildings.nl>; <smarty@lists.ispi.net> Sent: Thursday, April 26, 2001 5:44 AM Subject: [smarty] Re: Assigning objects to Smarty ? > Hi, > > Yes, that would be great :) > > > -----Message d'origine----- > > De : ivo [mailto:ivo]De la part de Ivo Jansch > > Envoye : jeudi 26 avril 2001 12:02 > > A : Alain Fontaine; smarty@lists.ispi.net > > Objet : [smarty] Re: Assigning objects to Smarty ? > > > > > > Hi, > > > > Alain Fontaine wrote: > > > > > Is it somehow possible to assign objets to Smarty tags? For > > instance, I'd > > > like to create a {section} that I will assign an array of > > objects to, and > > > I'd like to access the object's properties in the {section} for display. > > > > I don't think that's possible with the current release. > > > > Andrei/Monte: would it be possible to extend the syntax with '->' for > > example? > > > > So $user.name would be compiled to $user["name"], and $user->name would > > be compiled to $user->name (hehe). If that were possible, working with > > objects is just as easy as working with arrays. > > > > Greetings, > > Ivo > > > > -- > > Ivo Jansch <ivo@ibuildings.nl> > > ibuildings.nl BV - information technology > > http://www.ibuildings.nl > > > > --- > > You are currently subscribed to smarty as: alain@nvision.lu > > To unsubscribe send a blank email to $subst('Email.Unsub') > > Visit Smarty's homepage at > > http://www.phpinsider.com/php/code/Smarty/ > > > > --- > You are currently subscribed to smarty as: j-l-alexander@home.com > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/

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