A theme partial (tpl.php file) may contain foreaches

Events happening in the community are now at Drupal community events on www.drupal.org.
Bèr Kessels's picture
Yes, this is such simple logic, a foreach is understood by themers.
33% (10 votes)
Foreach, while, if, each, next: Themers should know their PHP.
33% (10 votes)
No, foreaches should only live in the template.php or the module.
33% (10 votes)
Total votes: 30

Comments

For the record, I am talking about code such as:

Bèr Kessels's picture

For the record, I am talking about code such as:

<?php foreach($definitions as $definition): ?>
  <dd><?php print $definition ?></dd>
<?php endforeach; ?>

Theme development

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: