Re: Assigning objects to Smarty ?
| From: | Alain Fontaine | Date: | Thu, 26 Apr 2001 10:44:28 +0000 |
| Subject: | Re: Assigning objects to Smarty ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-593@lists.php.net to get a copy of this message | ||
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/