Jump to content

looping in a template system


TheTitans

Recommended Posts

I am currently using the template system here: http://www.massassi.com/php/articles/template_engines/

 

Right now, I'm currently organizing my website up a bit with this simple system. I was wondering how for loops would work. I did a search and it seems looping is a complicated thing to implement in a template system. I don't want to make this too difficult, so would it be best to just put the for loop and its code in the .tpl page itself? I have a mix of PHP and HTML code in the for loop, which is why I was wondering what I should do.

Link to comment
https://forums.phpfreaks.com/topic/133753-looping-in-a-template-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.