Есть страница с постами, первый пост на странице - самый старый, а хочу чтобы был последний (самый новый). Вот код:
<div class="post">
<h2>Новости</h2>
<div class="all_news">
<?php foreach ($posts as $post):?>
<div>
<?php if (file_exists(ROOT.DS.APP_DIR.DS.WEBROOT_DIR.DS.IMAGES_URL.'posts/prev_'.$post['Post']['id'].'.jpg')): ?>
<?php echo $html->link($html->image('/img/posts/prev_'.$post['Post']['id'].'.jpg', array('alt' => $post['Post']['title'])),array('controller' => 'posts', 'action' => 'view', $post['Post']['id']),array('escape' => false, 'title' => $post['Post']['title'], 'class' => 'photo')); ?>
<?php endif; ?>
<h4><?php echo $html->link($post['Post']['title'], array('controller' => 'posts', 'action' => 'view', $post['Post']['id']));?></h4>
<span><?php echo $post['Post']['date']; ?></span>
<?php echo $post['Post']['short_text']; ?>
<p class="more"><?php echo $html->link('Читать дальше', array('controller' => 'posts', 'action' => 'view', $post['Post']['id']));?></p>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="page"><?php echo $this->Paginator->numbers(array('separator' => ' | '));?></div>
Подскажите что добавить?