summaryrefslogtreecommitdiffstats
path: root/controllers/TopicController.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
committerMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
commit2389d66da849798f8d4ec5f10e3b07c11da49185 (patch)
treee22556d12982395b469a23420c662662e3e064cc /controllers/TopicController.php
downloadotakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz
Initial Commit
Diffstat (limited to 'controllers/TopicController.php')
-rw-r--r--controllers/TopicController.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/controllers/TopicController.php b/controllers/TopicController.php
new file mode 100644
index 0000000..827c188
--- /dev/null
+++ b/controllers/TopicController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace app\controllers;
+use app\models\Topic;
+
+class TopicController extends \lithium\action\Controller {
+ public function index()
+ {
+ //We'll write this eventually
+ }
+
+ public function view($topicname)
+ {
+ $topic = Topic::find('first', array('conditions' => compact('topicname')));
+ }
+
+ public function new()
+ {
+ if ($this->request->data)
+ {
+ $topic = Topic::create($this->request->data);
+ $topic->save();
+ }
+ }
+} \ No newline at end of file