From c91e90406bbc81f8311a1d2707dd141d150f99a4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 17 Nov 2008 00:30:18 +0000 Subject: Add output formats to our REST controllers. Add support for JSON and XML to the comment controllers as a proof of concept. It's not fully baked; we should examine ways to create helpers to make this process easier. --- core/controllers/item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/controllers/item.php') diff --git a/core/controllers/item.php b/core/controllers/item.php index 053acc92..70af9d95 100644 --- a/core/controllers/item.php +++ b/core/controllers/item.php @@ -23,11 +23,11 @@ class Item_Controller extends REST_Controller { /** * @see Rest_Controller::_form($resource) */ - public function _form($comment) { - throw new Exception("@todo Comment_Controller::_get NOT IMPLEMENTED"); + public function _form($item) { + throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED"); } - public function _get($item) { + public function _get($item, $format) { // Redirect to the more specific resource type, since it will render // differently. We could also just delegate here, but it feels more appropriate // to have a single canonical resource mapping. -- cgit v1.2.3