PDA

View Full Version : Best practice for template filling ?


TheRageIsOn
09-06-2010, 06:10 AM
I have a question about filling templates!
Currently there are 2 options to fill a template:

1. get the data for the template in an array
2. do a foreach with php and register the vars in that loop and render the template
3. template usage as many times as the array contains data!

Second option:
1. get the data for the template in an array
2. register the array for the template that the template
can loop tru the vars on it own by using <vb:each>
3. template usage only once!

What is the best practice and/or whats the fastest way doing so ?

best regards Mike