/** * Retrieve response header * * @param Zend_Controller_Response_Abstract $response * @param string $header * @return string|null */ protected function _getHeader(Zend_Controller_Response_Abstract $response, $header) { $headers = $response->sendHeaders(); $header = strtolower($header); if (array_key_exists($header, $headers)) { return $headers[$header]; } return null; }
/** * Renders the response * * @param Zend_Controller_Response_Abstract $response - The response object * @return void */ public function render(Zend_Controller_Response_Abstract $response) { $response->sendHeaders(); if (self::$_environment != "cli" && Zend_Layout::getMvcInstance()->isEnabled()) { echo Zend_Layout::getMvcInstance()->render(); } else { echo $response; } }