summaryrefslogtreecommitdiff
path: root/core/controllers/photo.php
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-18 08:28:32 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-18 08:28:32 +0000
commit3ebb751cda5d47147a5c828b4cb32ecd4a9f8042 (patch)
tree2394d31d14417f13e8cac72c11b9df01b3c84507 /core/controllers/photo.php
parent59dbd1dc833a974f55f5cc66fa1c3204fa30980e (diff)
First iteration of REST controller refactoring. RESTful controllers that refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this:
GET /controller -> controller::_index() POST /controller -> controller::_create() GET /controller/id -> controller::_show() PUT /controller/id -> controller::_update() DELETE /controller/id -> controller::_delete() GET /form/edit/controller/resource_id -> controller::_form() GET /form/add/controller/data -> controller::_form()
Diffstat (limited to 'core/controllers/photo.php')
-rw-r--r--core/controllers/photo.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/core/controllers/photo.php b/core/controllers/photo.php
index 819af133..d6d37f98 100644
--- a/core/controllers/photo.php
+++ b/core/controllers/photo.php
@@ -20,16 +20,9 @@
class Photo_Controller extends Item_Controller {
/**
- * @see Rest_Controller::_form($resource)
+ * @see Rest_Controller::_show($resource, $output_format)
*/
- public function _form($comment) {
- throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED");
- }
-
- /**
- * @see Rest_Controller::_get($resource, $output_format)
- */
- public function _get($item, $output_format) {
+ public function _show($item, $output_format) {
$template = new View("page.html");
// @todo: this needs to be data-driven