Subversion-Projekte lars-tiefland.cakephp

Revision

Revision 8 | Revision 12 | 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>
30
		<td><?php echo $post['Post']['created']; ?></td>
31
	</tr>
32
	<?php endforeach; ?>
33
 
34
</table>
35
</body>
36
</html>