summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-16 19:12:01 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-16 19:12:01 +0000
commit5d14531af936a9ab2887fac9d1f056a1d712b051 (patch)
treedae9122156ba8f1f4f577b6412f7b4cf559aab2b /modules
parentbcb2230a6b081d17978f18458e6db756a3dbd6e1 (diff)
Drop the call to render() and just use the View's __toString method to
print it out.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/controllers/comment.php4
-rw-r--r--modules/comment/controllers/comments.php4
-rw-r--r--modules/user/controllers/user.php6
3 files changed, 7 insertions, 7 deletions
diff --git a/modules/comment/controllers/comment.php b/modules/comment/controllers/comment.php
index a8f52443..4c04e007 100644
--- a/modules/comment/controllers/comment.php
+++ b/modules/comment/controllers/comment.php
@@ -26,7 +26,7 @@ class Comment_Controller extends REST_Controller {
*/
public function _form($comment) {
$form = comment::get_edit_form($comment);
- print $form->render("form.html");
+ print $form;
}
/**
@@ -58,7 +58,7 @@ class Comment_Controller extends REST_Controller {
$comment->save();
return;
}
- print $form->render();
+ print $form;
}
/**
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php
index a0233a0b..60ab9b5d 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -26,7 +26,7 @@ class Comments_Controller extends REST_Controller {
*/
public function _form($item) {
$form = comment::get_add_form($item);
- print $form->render("form.html");
+ print $form;
}
/**
@@ -63,7 +63,7 @@ class Comments_Controller extends REST_Controller {
header("HTTP/1.1 201 Created");
header("Location: " . url::site("comment/{$comment->id}"));
}
- print $form->render("form.html");
+ print $form;
}
/**
diff --git a/modules/user/controllers/user.php b/modules/user/controllers/user.php
index c1794af3..c25c9c35 100644
--- a/modules/user/controllers/user.php
+++ b/modules/user/controllers/user.php
@@ -26,7 +26,7 @@ class User_Controller extends REST_Controller {
*/
public function _form($user) {
$form = user::get_edit_form($user);
- print $form->render();
+ print $form;
}
/**
@@ -40,7 +40,6 @@ class User_Controller extends REST_Controller {
* @see Rest_Controller::_put($resource)
*/
public function _put($resource) {
- throw new Exception("@todo User_Controller::_put NOT IMPLEMENTED");
}
/**
@@ -58,7 +57,8 @@ class User_Controller extends REST_Controller {
}
return;
}
- print $form->render("form.html");
+ print $form;
+ throw new Exception("@todo User_Controller::_put NOT IMPLEMENTED");
}
/**