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.
This commit is contained in:
Bharat Mediratta
2010-06-19 13:53:22 -07:00
parent 41ca2b0195
commit 456d54ea2d
3 changed files with 17 additions and 37 deletions

View File

@@ -0,0 +1,2 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= json_encode($e->response) ?>