TheTitans Posted November 22, 2008 Share Posted November 22, 2008 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 More sharing options...
samona Posted November 22, 2008 Share Posted November 22, 2008 When you use for loops you would use it in the php code not the template file. And the way you would use it depends on the template class. Link to comment https://forums.phpfreaks.com/topic/133753-looping-in-a-template-system/#findComment-696580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.