By: martin
Date: 2005-10-22
Time: 21:19
|
Include Versus Function
Hi Skrol. In your opinion what is the best, or right way to work whith TBS.
Using a GLOBAL template like basis.htm and inside have variables like [var..title] [var..body] [var..customer] and this variables comes from the result of PHP function like GET_CUSTOMERS-->var..customer
OR
Using individuals files like customer.php and include into where i need whith the <--include virtual=/customer.php-->
I dont know if i was clear in my idea.... to be simple, all output come from functions or using HARD files.
Sorry for my poor english.
Martin.
|
By: Skrol29
Date: 2005-10-25
Time: 10:01
|
Re: Include Versus Function
Hello Martin,
I can't reply in terme of good/not good way, because each coder has its own usage.
My way to work with a Template Engine (TBS) is to regroup the application into a unique php script ... as it can be. If the application is too big, or if a special part is need only for specific page or situation (like sending mass of email for a news-letter using an email class only for that, for example) then this part can be in a sub-script.
|