Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Feature Proposal: ability to set properties of objects

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Michael White
Smarty Rookie


Joined: 08 Oct 2009
Posts: 20

PostPosted: Sun Nov 08, 2009 1:28 am    Post subject: Feature Proposal: ability to set properties of objects Reply with quote

Currently I have not found a way to set a new value for an object property when working in a Smarty template file.

I was hoping something like the following would be possible:
Code:

{$myobj->title="Some Title"}


For now I have resorted to using the following technique:

Code:

{$myobj->__set("title", "Some Title")}


My proposal is that the first code block above should work now that such tight integration with PHP is being implemented.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP