code/libraries/joomlatools/component/koowa/dispatcher/behavior/decoratable.php
protected function _beforeSend(KDispatcherContextInterface $context)
    {
        $response = $context->getResponse();

        if(!$response->isDownloadable() && !$response->isRedirect())
        {
            //Render the page
            $result = $this->getObject('com:koowa.controller.page',  array('response' => $response))
                ->layout($this->getDecorator())
                ->render();


            //Set the result in the response
            $response->setContent($result);
        }
    }
protected function _beforeSend(KDispatcherContextInterface $context)
    {
        $response = $context->getResponse();

        if(!$response->isDownloadable() && !$response->isRedirect())
        {
            //Render the page
            $result = $this->getObject('com:koowa.controller.page',  array('response' => $response))
                ->layout($this->getDecorator())
                ->render();


            //Set the result in the response
            $response->setContent($result);
        }
    }
protected function _beforeSend ( KDispatcherContextInterface $ context ) { $ response = $ context -> getResponse ( ) ; if ( ! $ response -> isDownloadable ( ) && ! $ response -> isRedirect ( ) ) { //Render the page $ result = $ this -> getObject ( 'com:koowa.controller.page' , array ( 'response' => $ response ) ) -> layout ( $ this -> getDecorator ( ) ) -> render ( ) ; //Set the result in the response $ response -> setContent ( $ result ) ; } }
Decorate the response

@param   KDispatcherContextInterface $context A command context object
@return 	void
Decorate the response