Cleaning up unnecessary use of 'die' and 'exit'
This commit is contained in:
parent
84b00e305e
commit
2d5659d613
13 changed files with 188 additions and 106 deletions
|
|
@ -92,6 +92,10 @@ class Controller extends \b8\Controller
|
|||
$this->setView($action);
|
||||
$response = parent::handleAction($action, $actionParams);
|
||||
|
||||
if ($response instanceof Response) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
if (is_string($response)) {
|
||||
$this->controllerView->content = $response;
|
||||
} elseif (isset($this->view)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue