a grand renaming so that the most significant portion of the name comes first

This commit is contained in:
Dan Buch
2012-03-03 21:45:20 -05:00
parent c8b8078175
commit f4f448926d
1300 changed files with 0 additions and 234 deletions

View File

@@ -0,0 +1,7 @@
<h1>Add Post</h1>
<?php
echo $this->Form->create("Post");
echo $this->Form->input("title");
echo $this->Form->input("body", array("rows" => "3"));
echo $this->Form->end("Save Post");
?>

View File

@@ -0,0 +1,8 @@
<h1>Edit Post</h1>
<?php
echo $this->Form->create("Post", array("action" => "edit"));
echo $this->Form->input("title");
echo $this->Form->input("body", array("rows" => "3"));
echo $this->Form->input("id", array("type" => "hidden"));
echo $this->Form->end("Save Post");
?>

View File

@@ -0,0 +1,40 @@
<h1>Blog posts</h1>
<?php echo $this->Html->link(
"Add Post", array("controller" => "posts", "action" => "add")
);
?>
<table>
<tr>
<th>Id</th>
<th>Title</th>
<th>Actions</th>
<th>Created</th>
</tr>
<?php foreach ($posts as $post): ?>
<tr>
<td><?php echo $post["Post"]["id"]; ?></td>
<td>
<?php echo $this->Html->link(
$post["Post"]["title"],
array("controller" => "posts", "action" => "view",
$post["Post"]["id"])
);
?>
</td>
<td>
<?php echo $this->Html->link(
"Delete", array("action" => "delete", $post["Post"]["id"]),
null, "Are you sure?"
);
?>
<?php echo $this->Html->link(
"Edit", array("action" => "edit", $post["Post"]["id"])
);
?>
</td>
<td><?php echo $post['Post']['created']; ?></td>
</tr>
<?php endforeach; ?>
</table>

View File

@@ -0,0 +1,3 @@
<h1><?php echo $post['Post']['title']?></h1>
<p><small>Created: <?php echo $post['Post']['created']?></small></p>
<p><?php echo $post['Post']['body']?></p>