Is the below considered too much for a view in codeigniter / php? where $springtrail is an array calculated in a model?
<div id="page_name">Website</div>
<?php
$count = count($springtrail);
for($i = $count; $i >= 1; $i--){
if ($i != 1)
{
?> <div class="springtrail_button" id="st-0">arrayitem</div> <?php
} else
{
?> <a class="springtrail_link" href="#" id="1">Add</a> <?php
}
}
No, it has to do with your appearance logic, so putting it outside your view would in essence remove logic from your view (and put it elsewhere), breaking your mvc model