5 use Controllers\IDivineController
;
6 use Services\Http\HttpRequest
;
9 abstract class AbstractBaseController
11 protected $_jsonResponse;
13 //TODO: Not really used as this application probably won't have views.
14 //But hey, the intended usage is when you want a controller to not render
15 //a view. So it's there if I ever use this for anything else.
16 public function setJsonResponse($bool) {
18 throw new Exception('Not a boolean value.');
21 $this->_jasonResponse
= $bool;