<table>
<thead>
<th>ISBN</th><th>Title</th><th>Author</th>
</thead>
<?php foreach($books as $book): ?>
<tr>
<td><?php echo $book['Book']['isbn'] ?></td>
<td><?php echo $book['Book']['title'] ?></td>
<td><?php echo $book['Book']['penerbit'] ?></td>
</tr>
<?php endforeach; ?>
</table>
and any line of code :
Notice (8): Undefined variable: books [APP\views\books\index.ctp, line
5]
Warning (2): Invalid argument supplied for foreach() [APP\views\books
\index.ctp, line 5]
Please help me, Thank's?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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