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

Recursive Objekts at the Template

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
famjaco
Smarty n00b


Joined: 24 Jul 2005
Posts: 4

PostPosted: Mon Jul 25, 2005 1:27 pm    Post subject: Recursive Objekts at the Template Reply with quote

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
View user's profile Send private message
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 -> Feature Requests 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