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