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 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;
}
/**