diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-19 13:53:22 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-19 14:07:37 -0700 |
commit | 456d54ea2dccbe55a2efd89ecb4bde29fb91b619 (patch) | |
tree | 91e7b71f4b167e99fa3e0494d358e9787300d0df /modules/rest/views | |
parent | 41ca2b0195bf6a29429dfc5405f3c2073b1c3aba (diff) |
Throw exceptions as appropriate, but allow the Kohana exception
handling framework to handle the exception and delegate to our
template, which will JSON encode the response.
Diffstat (limited to 'modules/rest/views')
-rw-r--r-- | modules/rest/views/error_rest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/rest/views/error_rest.php b/modules/rest/views/error_rest.php new file mode 100644 index 00000000..c018378e --- /dev/null +++ b/modules/rest/views/error_rest.php @@ -0,0 +1,2 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= json_encode($e->response) ?>
\ No newline at end of file |