Categories > TBS next version >

Object support?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Adrian Madrid
Date: 2004-04-15
Time: 23:09

Object support?

Would there be ever object support? As in [var.user.id] for $user->id? That would be great because I use a lot of objects and I have to do a $x->toarray() now to use it in TBS.

Thanks in advance,

Adrian
By: Skrol29
Date: 2004-04-16
Time: 13:15

Re: Object support?

Hi,

This is technically possible to do.
It simple for a non nested object with only one level of property.
  Example : $user->id
I can to that quickly.

But it is more complicated for nested objects.
  Example : $user->card->id



By: Adrian Madrid
Date: 2004-04-16
Time: 18:28

Re: Object support?

I think $user->id would be more than enough for me. Most of my objects either exted or handle internal objects internally. I would really apreciate if you could add that feature. I have already used TBS for my last project and I loved it. Nevertheless, for my next project  I need object support and I was fearing having to go with Smarty.

Thanks,


Adrian Madrid