|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Michael White Smarty Rookie
Joined: 08 Oct 2009 Posts: 20
|
Posted: Sun Nov 08, 2009 1:28 am Post subject: Feature Proposal: ability to set properties of objects |
|
|
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 |
|
|
|
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
|