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.
This commit is contained in:
Bharat Mediratta
2008-11-17 00:30:18 +00:00
parent 0975e702a9
commit c91e90406b
9 changed files with 98 additions and 37 deletions
+2 -2
View File
@@ -30,9 +30,9 @@ class User_Controller extends REST_Controller {
}
/**
* @see Rest_Controller::_get($resource)
* @see Rest_Controller::_get($resource, $format)
*/
public function _get($user) {
public function _get($user, $format) {
throw new Exception("@todo User_Controller::_get NOT IMPLEMENTED");
}