diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-17 00:30:18 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-17 00:30:18 +0000 |
commit | c91e90406bbc81f8311a1d2707dd141d150f99a4 (patch) | |
tree | ddda2c6bacd4b0e0e30f4c8a62d13b2842b864cc /core/controllers/photo.php | |
parent | 0975e702a99dad701f66c606de6597048338f247 (diff) |
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.
Diffstat (limited to 'core/controllers/photo.php')
-rw-r--r-- | core/controllers/photo.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/photo.php b/core/controllers/photo.php index 2a0153a2..819af133 100644 --- a/core/controllers/photo.php +++ b/core/controllers/photo.php @@ -23,13 +23,13 @@ class Photo_Controller extends Item_Controller { * @see Rest_Controller::_form($resource) */ public function _form($comment) { - throw new Exception("@todo Comment_Controller::_get NOT IMPLEMENTED"); + throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED"); } /** - * @see Rest_Controller::_get($resource) + * @see Rest_Controller::_get($resource, $output_format) */ - public function _get($item) { + public function _get($item, $output_format) { $template = new View("page.html"); // @todo: this needs to be data-driven |