Drop the call to render() and just use the View's __toString method to

print it out.
This commit is contained in:
Bharat Mediratta
2008-11-16 19:12:01 +00:00
parent bcb2230a6b
commit 5d14531af9
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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;
}
/**