|
Revision 29524, 1.5 kB
(checked in by fabien, 3 years ago)
|
[1.3, 1.4] fixed sfWebResponse::sendHttpHeaders() call from sfController::forward() in sfController::getPresentationFor() prevents later call to sendHttpHeaders() within main controller (closes #8568)
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
class sfRenderingFilter extends sfFilter |
|---|
| 21 |
{ |
|---|
| 22 |
|
|---|
| 23 |
* Executes this filter. |
|---|
| 24 |
* |
|---|
| 25 |
* @param sfFilterChain $filterChain The filter chain. |
|---|
| 26 |
* |
|---|
| 27 |
* @throws <b>sfInitializeException</b> If an error occurs during view initialization |
|---|
| 28 |
* @throws <b>sfViewException</b> If an error occurs while executing the view |
|---|
| 29 |
*/ |
|---|
| 30 |
public function execute($filterChain) |
|---|
| 31 |
{ |
|---|
| 32 |
|
|---|
| 33 |
$filterChain->execute(); |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
$response = $this->context->getResponse(); |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
if (sfForm::hasToStringException()) |
|---|
| 40 |
{ |
|---|
| 41 |
throw sfForm::getToStringException(); |
|---|
| 42 |
} |
|---|
| 43 |
else if (sfFormField::hasToStringException()) |
|---|
| 44 |
{ |
|---|
| 45 |
throw sfFormField::getToStringException(); |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
if (sfView::RENDER_VAR != $this->context->getController()->getRenderMode()) |
|---|
| 50 |
{ |
|---|
| 51 |
$response->send(); |
|---|
| 52 |
} |
|---|
| 53 |
} |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|