public function _stop($code = null) {
        $response = $this->response();

        if (!$response->sent()) {
            if ($code !== null) {
                $response->status($code);
            }

            $response->write(ob_get_clean());

            $response->send();
        }
    }
public function _stop($code = null) {
        $response = $this->response();

        if (!$response->sent()) {
            if ($code !== null) {
                $response->status($code);
            }

            $response->write(ob_get_clean());

            $response->send();
        }
    }
public function _stop ( $ code = null ) { $ response = $ this -> response ( ) ; if ( ! $ response -> sent ( ) ) { if ( $ code !== null ) { $ response -> status ( $ code ) ; } $ response -> write ( ob_get_clean ( ) ) ; $ response -> send ( ) ; } }
Stops the framework and outputs the current response.

@param int $code HTTP status code
@throws \Exception
Stops the framework and outputs the current response .