From 5d14531af936a9ab2887fac9d1f056a1d712b051 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 16 Nov 2008 19:12:01 +0000 Subject: Drop the call to render() and just use the View's __toString method to print it out. --- modules/comment/controllers/comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment/controllers/comments.php') 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; } /** -- cgit v1.2.3