src/CrudKit/CrudKitApp.php
public function render () {
        $content = $this->renderToString();

        if ($this->redirect !== null) {
            header("Location: ".$this->redirect);
            session_write_close();
            exit();
            return;
        }

        // Headers are also calculated in render to string
        if($this->isJsonResponse()) {
            header("Content-type: application/json;");
        }


        echo $content;
        exit ();
    }
public function render () {
        $content = $this->renderToString();

        if ($this->redirect !== null) {
            header("Location: ".$this->redirect);
            session_write_close();
            exit();
            return;
        }

        // Headers are also calculated in render to string
        if($this->isJsonResponse()) {
            header("Content-type: application/json;");
        }


        echo $content;
        exit ();
    }
public function render ( ) { $ content = $ this -> renderToString ( ) ; if ( $ this -> redirect !== null ) { header ( "Location: " . $ this -> redirect ) ; session_write_close ( ) ; exit ( ) ; return ; } // Headers are also calculated in render to string if ( $ this -> isJsonResponse ( ) ) { header ( "Content-type: application/json;" ) ; } echo $ content ; exit ( ) ; }
Render your CrudKit app and output to HTML
Render your CrudKit app and output to HTML