|
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 |
famjaco Smarty n00b
Joined: 24 Jul 2005 Posts: 4
|
Posted: Mon Jul 25, 2005 1:27 pm Post subject: Recursive Objekts at the Template |
|
|
Hi,
i think it will be more easyer if the template understand objektmethodīs who give retrun a new objekt, and i can use the methods of the new objekt direktly.
you can see my fist question on thread:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=5796
(sorry itīs german)
for example.
i assign a variable with an objekt to the template:
assing("test", new Objekt());
the objekt has a methode wich returns a new objekt for example ObjektHouse.:
public function get_House(){}
so i want to use this in the template like this:
$test->get_House()->get_Name();
at the moment it doesnt work because smarty likes to have a string after the first methode in a template. i think it should be work and it would be make some parts of coding more easyer.
greetings jaco |
|
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
|