public function render($options = array())
    {
        $this->configure($options + $this->getDefaultConfiguration());

        $content = $this->parseCurrentContent();

        if ((bool)$this->getConfig('end')) {
            // Only play with headers when we know we will
            // kill the process.
            $this->applyHeaders();

            echo $content;
            Strata::router()->route->end();
            exit();
        }

        echo $content;
    }
public function render($options = array())
    {
        $this->configure($options + $this->getDefaultConfiguration());

        $content = $this->parseCurrentContent();

        if ((bool)$this->getConfig('end')) {
            // Only play with headers when we know we will
            // kill the process.
            $this->applyHeaders();

            echo $content;
            Strata::router()->route->end();
            exit();
        }

        echo $content;
    }
public function render ( $ options = array ( ) ) { $ this -> configure ( $ options + $ this -> getDefaultConfiguration ( ) ) ; $ content = $ this -> parseCurrentContent ( ) ; if ( ( bool ) $ this -> getConfig ( 'end' ) ) { // Only play with headers when we know we will // kill the process. $ this -> applyHeaders ( ) ; echo $ content ; Strata :: router ( ) -> route -> end ( ) ; exit ( ) ; } echo $ content ; }
Renders on the page and end the process. Useful for simple HTML returns or data in another format like JSON.
@param  array $options An associative array of rendering options
@return string          The rendered content.
Renders on the page and end the process . Useful for simple HTML returns or data in another format like JSON .