/** * Executes this filter. * * @param sfFilterChain $filterChain The filter chain. * * @throws <b>sfInitializeException</b> If an error occurs during view initialization * @throws <b>sfViewException</b> If an error occurs while executing the view */ public function execute($filterChain) { // execute next filter $filterChain->execute(); if (sfConfig::get('sf_logging_enabled')) { $this->context->getEventDispatcher()->notify(new sfEvent($this, 'application.log', array('Render to the client'))); } // get response object $response = $this->context->getResponse(); // hack to rethrow sfForm __toString() exception (see sfForm) if (sfForm::hasToStringException()) { throw sfForm::getToStringException(); } // send headers + content $response->send(); }
/** * Executes this filter. * * @param sfFilterChain $filterChain The filter chain. * * @throws <b>sfInitializeException</b> If an error occurs during view initialization * @throws <b>sfViewException</b> If an error occurs while executing the view */ public function execute($filterChain) { // execute next filter $filterChain->execute(); // get response object $response = $this->context->getResponse(); // hack to rethrow sfForm and|or sfFormField __toString() exceptions (see sfForm and sfFormField) if (sfForm::hasToStringException()) { throw sfForm::getToStringException(); } else { if (sfFormField::hasToStringException()) { throw sfFormField::getToStringException(); } } // send headers + content $response->send(); }
public function execute($filterChain) { $filterChain->execute(); $response = $this->context->getResponse(); if (sfForm::hasToStringException()) { throw sfForm::getToStringException(); } else { if (sfFormField::hasToStringException()) { throw sfFormField::getToStringException(); } } if (sfView::RENDER_VAR != $this->context->getController()->getRenderMode()) { $response->send(); } }
public function execute($filterChain) { $filterChain->execute(); $response = $this->context->getResponse(); if (sfForm::hasToStringException()) { throw sfForm::getToStringException(); } else { if (sfFormField::hasToStringException()) { throw sfFormField::getToStringException(); } } $response->send(); }
public function execute($filterChain) { $filterChain->execute(); if (sfConfig::get('sf_logging_enabled')) { $this->context->getEventDispatcher()->notify(new sfEvent($this, 'application.log', array('Render to the client'))); } $response = $this->context->getResponse(); if (sfForm::hasToStringException()) { throw sfForm::getToStringException(); } else { if (sfFormField::hasToStringException()) { throw sfFormField::getToStringException(); } } $response->send(); }