I am making a dashboard for my CMS that I built using cake.  I am
attempting to make it so that it lists only the most recent post for
each section on the dash board, or possibly the 3 most recent posts.
I cannot seem to find how to do this in my research, though that could
be because I lack the proper syntax in my search.

my code on the dashboard.thml for pulling from my packets table

<!-- -------------- -->
                <!-- Packets Table -->
                <!-- -------------- -->
                <table border="0" cellpadding="0" cellspacing="0" summary="This
table contains a list of the latest AiOnline Packets">
          <caption>
            Packets
          </caption>
                  <thead>
            <tr>
              <td colspan="3"><ul id="table-hdr">
                  <li class="table-name">Packets</li>
                <li class="add-edit-btn"><?php echo $html->link('', '/
packets/add','','','false');?></li>
              </ul></td>
            </tr>
          </thead>
          <tr>
            <th colspan="3" class="title-col">Title</th>
          </tr>
          <tr>
                    <?php foreach ($packets as $packet): ?>
            <td class="edit-col"><?php echo $html->image('cms/
icon_page.gif');?></td>
            <td class="title-col"><?php echo $html-
>link($packet['Packet']['title'], '/packets/view/'.$packet['Packet']
['id']);?> </td>
            <td><?php echo $html->link(
                'Delete',
                "/packets/delete/{$packet['Packet']['id']}",
                null,
                'Are you sure?'
            )?> </td>
          </tr>
          <?php endforeach; ?>
        </table>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to