protected function buildFakePage()
    {
        try {
            $rawResponse = App::$View->render('_core/exceptions/' . $this->tpl, ['msg' => $this->text]);
            if (Str::likeEmpty($rawResponse)) {
                $rawResponse = $this->text;
            }
        } catch (\Exception $e) {
            $rawResponse = $this->text;
        }
        // set status code for header
        App::$Response->setStatusCode((int)$this->status);
        // return compiled html output
        return $rawResponse;
    }
protected function buildFakePage()
    {
        try {
            $rawResponse = App::$View->render('_core/exceptions/' . $this->tpl, ['msg' => $this->text]);
            if (Str::likeEmpty($rawResponse)) {
                $rawResponse = $this->text;
            }
        } catch (\Exception $e) {
            $rawResponse = $this->text;
        }
        // set status code for header
        App::$Response->setStatusCode((int)$this->status);
        // return compiled html output
        return $rawResponse;
    }
protected function buildFakePage ( ) { try { $ rawResponse = App :: $ View -> render ( '_core/exceptions/' . $ this -> tpl , [ 'msg' => $ this -> text ] ) ; if ( Str :: likeEmpty ( $ rawResponse ) ) { $ rawResponse = $ this -> text ; } } catch ( \ Exception $ e ) { $ rawResponse = $ this -> text ; } // set status code for header App :: $ Response -> setStatusCode ( ( int ) $ this -> status ) ; // return compiled html output return $ rawResponse ; }
Build fake page with error based on fake controller initiation
Build fake page with error based on fake controller initiation