summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-16 00:50:36 -0400
committerMichael Francis <edude03@gmail.com>2011-07-16 00:54:38 -0400
commitfda3b17b032b67e0ccfbaa3aa6ec6e4ee5a17f70 (patch)
tree5d4fbd461bc1fb2716f0fa9fa6c1458cf6f816f8 /views
parenta277c978e66c970231b3cf987d220f3476fe456e (diff)
downloadotakuhub-fda3b17b032b67e0ccfbaa3aa6ec6e4ee5a17f70.tar.xz
Implemented mySQL based friending
Diffstat (limited to 'views')
-rw-r--r--views/friends/add.html.php4
-rw-r--r--views/friends/index.html.php7
2 files changed, 11 insertions, 0 deletions
diff --git a/views/friends/add.html.php b/views/friends/add.html.php
new file mode 100644
index 0000000..079c5d7
--- /dev/null
+++ b/views/friends/add.html.php
@@ -0,0 +1,4 @@
+<?= $this->form->create(); ?>
+ <?= $this->form->textbox('userid'); ?>
+ <?= $this->form->submit('request'); ?>
+<?= $this->form->end(); ?> \ No newline at end of file
diff --git a/views/friends/index.html.php b/views/friends/index.html.php
new file mode 100644
index 0000000..41fbeb7
--- /dev/null
+++ b/views/friends/index.html.php
@@ -0,0 +1,7 @@
+<?php
+
+foreach($user->myFriends() as $friend) {
+echo $friend->username;
+}
+
+?> \ No newline at end of file