From ddf0a519000f4c93df1f2ded18b631325256a905 Mon Sep 17 00:00:00 2001
From: Jozef Selesi
Date: Mon, 10 Nov 2008 17:32:04 +0000
Subject: Comment creation controller, helper and test. Add comments from the
scaffold.
---
core/views/welcome.html.php | 7 ++++
modules/comment/controllers/comment.php | 59 +++++++++++++++++++++++++++
modules/comment/helpers/comment.php | 50 +++++++++++++++++++++++
modules/comment/tests/Comment_Helper_Test.php | 42 +++++++++++++++++++
4 files changed, 158 insertions(+)
create mode 100644 modules/comment/controllers/comment.php
create mode 100644 modules/comment/helpers/comment.php
create mode 100644 modules/comment/tests/Comment_Helper_Test.php
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index bf7ba455..9b3d9d88 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -173,6 +173,13 @@
endforeach ?>
] photos and albums
+
+ add: [
+ foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
+ = html::anchor("comment/add/$count", "$count") ?>
+ endforeach ?>
+ ] comments
+