I need to display a list of warnings captured in an array.. how would I show them in a template? I'm thinking I would need a warnings template. I'm kinda stuck on the sizeof part though.
Code:
if ($isAdmin && is_array($warnings) && sizeof($warnings) > 0) {
echo '<div id="warnings">';
foreach ($warnings as $warning) {
echo $warning;
}
echo '</div>';
}
Warnings Template:
HTML Code:
<div id="warnings">$warning</div>