I have this view how do I only iterate this unit model when the $wprice is > 1
<?php
$model->getFeaturedVehicles(10, 0, unserialize($vtype), unserialize($makes), $p1range, $p2range, $filters) ?>
<div id="adspecials"><?php while ($unit = $model->iterate()): ?>
<div class="adwrapper">
<div class="ad">
<h1 class="cufon"><?php echo $unit->wprice,'</h1><h4>Preferred Club Pricing</h4>' ?>
</div>
</div>
</div><?php endwhile; ?>
</div>
From your view it seems like
wpriceis a property of$unit, so you should just be able to add an additional if-statement within the while-loop:You should also:
echo $unit->wprice, '[long string with html]'-statement, it is very hard to read.