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

using subtemplates

 
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 -> General
View previous topic :: View next topic  
Author Message
mikrocosm
Smarty n00b


Joined: 19 Jul 2003
Posts: 3

PostPosted: Sat Jul 19, 2003 2:20 pm    Post subject: using subtemplates Reply with quote

hi,
being a rather experienced php-dev i just decided to use smarty in a new project. so i read the manual, some tuts and more and i am still not sure as how to implement it best. (which probably just means that i read so many tuts i forgot the manual again allready Wink

The problem i am facing should be rather common and easy to solve, so i am sorry if i am overlooking something basic here:

i would just like to use some subtemplates or rather subcontent, which is not defined in the contentfile, but in the template- meaning i have special tabledefinition and i need that many times in my template, but alwas using a different databaseresult in there.
so what i would need is to say in the templatefile to include at a some place a content file (which then gets the small templatefile, asks the database, puts the result in the template and returns the resulting table into the main layout.)
if that was to confused to understand just have a look at http://mikro.homeip.net/fewo.neu/ : i am talking about the table on the left and on the right..

could anybody please explain to me how this is done?
_________________
Regards,

Mike Beck
Back to top
View user's profile Send private message
mikrocosm
Smarty n00b


Joined: 19 Jul 2003
Posts: 3

PostPosted: Sat Jul 19, 2003 2:50 pm    Post subject: oops Reply with quote

ok, on reading the manual again, it seems that {php} is thought to be used for that.
Sorry
_________________
Regards,

Mike Beck
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 -> General 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