Subversion-Projekte lars-tiefland.cakephp

Revision

Revision 11 | Revision 13 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
6 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
 
4
<head>
5
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
6
	<meta name="author" content="Webagentur Niewerth">
7
 
8
	<title>Ohne Titel 3</title>
9
</head>
10
 
11
<body>
12
<h1>Blog posts</h1>
11 lars 13
<?php echo $html->link('Add Post',array('controller' => 'posts', 'action' => 'add'))?>
6 lars 14
<table>
15
	<tr>
16
		<th>Id</th>
17
		<th>Title</th>
18
		<th>Created</th>
19
	</tr>
20
 
21
	<!-- Here is where we loop through our $posts array, printing out post info -->
22
 
23
	<?php foreach ($posts as $post): ?>
24
	<tr>
25
		<td><?php echo $post['Post']['id']; ?></td>
26
		<td>
27
			<?php echo $html->link($post['Post']['title'],
28
"/posts/view/".$post['Post']['id']); ?>
29
		</td>
12 lars 30
        <td>
31
        <?php echo $html->link('Delete', array('action' => 'delete', 'id' => $post['Post']['id']), null, 'Are you sure?' )?>
32
        </td>
6 lars 33
		<td><?php echo $post['Post']['created']; ?></td>
34
	</tr>
35
	<?php endforeach; ?>
36
 
37
</table>
38
</body>
39
</html>