public static function shutdown()
    {
        global $PPHP;
        $req = grab('request');

        if (!$req['binary']) {
            $body = ob_get_contents();
            ob_end_clean();
            try {
                array_merge_assoc(
                    self::$_stash,
                    array(
                        'body' => self::$_safeBody,
                        'stdout' => $body,
                        'config' => $PPHP['config'],
                        'session' => $_SESSION,
                        'req' => grab('request')
                    )
                );
                self::$_template->displayBlock('body', self::$_stash);
            } catch (\Exception $e) {
                echo $e->getMessage();
            };
        };
    }
public static function shutdown()
    {
        global $PPHP;
        $req = grab('request');

        if (!$req['binary']) {
            $body = ob_get_contents();
            ob_end_clean();
            try {
                array_merge_assoc(
                    self::$_stash,
                    array(
                        'body' => self::$_safeBody,
                        'stdout' => $body,
                        'config' => $PPHP['config'],
                        'session' => $_SESSION,
                        'req' => grab('request')
                    )
                );
                self::$_template->displayBlock('body', self::$_stash);
            } catch (\Exception $e) {
                echo $e->getMessage();
            };
        };
    }
public static function shutdown ( ) { global $ PPHP ; $ req = grab ( 'request' ) ; if ( ! $ req [ 'binary' ] ) { $ body = ob_get_contents ( ) ; ob_end_clean ( ) ; try { array_merge_assoc ( self :: $ _stash , array ( 'body' => self :: $ _safeBody , 'stdout' => $ body , 'config' => $ PPHP [ 'config' ] , 'session' => $ _SESSION , 'req' => grab ( 'request' ) ) ) ; self :: $ _template -> displayBlock ( 'body' , self :: $ _stash ) ; } catch ( \ Exception $ e ) { echo $ e -> getMessage ( ) ; } ; } ; }
Clean up content capture and display main template

@return null
Clean up content capture and display main template