HI there,

Would you like to show me how could I use $scaffold on front page of
Cake PHP. I place this code on /app/pages/default.html in order to
list the notes on the front page. Such as: http://localhost instead of
http://localhost/notes as usual
(I follow this tutorial: http://www.sitepoint.com/article/application-
development-cakephp)

<h1>My Notes</h1>
<table>
   <tr>
       <th>Id</th>
       <th>Title</th>
       <th>Created</th>
   </tr>
   <?php foreach ($notes as $note): ?>
   <tr>
       <td><?php echo $note['Note']['id']; ?></td>
       <td>
           <a href="/notes/view/<?php echo $note['Note']['id']?>">
               <?php echo $note['Note']['title']?>
           </a>
       </td>
       <td><?php echo $note['Note']['created']; ?></td>
 </tr>
   <?php endforeach; ?>
</table>

However, cakePHP threw some errors. I read manual carefully, but it
doesn't mention how could I implement database to the front page.
Please help me.

Thank you very much !
Best Regards


--~--~---------~--~----~------------~-------~--~----~
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