src/IO/ResponseHtml.php
public function formatResponseBad($response) {
        //TODO replace.
        if (is_object($response) && is_a($response, '\Mmf\View\BasicViewInterface')) {
            //Is a view
            $return = $response->getContentWithTemplate();
        } else if (is_string($response)) {
            //Is string
            $return = $response;
        } else {
            //Is another structure (object or array)
            $return = print_r($response, true);
        }
        echo $return;
        return $return;
    }
public function formatResponseBad($response) {
        //TODO replace.
        if (is_object($response) && is_a($response, '\Mmf\View\BasicViewInterface')) {
            //Is a view
            $return = $response->getContentWithTemplate();
        } else if (is_string($response)) {
            //Is string
            $return = $response;
        } else {
            //Is another structure (object or array)
            $return = print_r($response, true);
        }
        echo $return;
        return $return;
    }
Echo the response and return it as a string to be echo.

@param mixed $response
@return string