From 1992343c2e1f2df892f39f971ae629edc59c33d0 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Tue, 18 Nov 2008 23:40:47 +0000 Subject: * Changed REST API. Now there are two separate methods for forms: GET /form/edit/{controller}/{resource_id} -> controller::_form_edit($resource) GET /form/add/{controller}/{parameters} -> controller::_form_add($parameters) * Updated comment, user and core modules to reflect the API changes * Cleaned up routing and handling of requests to /{controller} --- core/controllers/item.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'core/controllers/item.php') diff --git a/core/controllers/item.php b/core/controllers/item.php index 1113d00f..f5c5f9c9 100644 --- a/core/controllers/item.php +++ b/core/controllers/item.php @@ -28,9 +28,16 @@ class Item_Controller extends REST_Controller { } /** - * @see Rest_Controller::_form($resource) + * @see Rest_Controller::_form_add($parameters) */ - public function _form($item, $form_type) { + public function _form_add($parameters) { + throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED"); + } + + /** + * @see Rest_Controller::_form_edit($resource) + */ + public function _form_edit($item) { throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED"); } -- cgit v1.2.3