Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

render view one last time in case exception thrown from inside view #3385

Merged
merged 4 commits into from
Jan 14, 2013

Conversation

radnan
Copy link
Contributor

@radnan radnan commented Jan 9, 2013

Try to render the view one last time in case a render.error is triggered by an exception from within the view or one of the child views. If the view continues to throw exceptions, bail out and just re-throw the exception.

radnan added 4 commits January 8, 2013 18:37
Try to render the view one last time in case a render.error is
triggered. If the view continues to throw exceptions, bail out and
just re-throw the exception.
@radnan radnan mentioned this pull request Jan 9, 2013
$e->setError(Application::ERROR_EXCEPTION)
->setParam('exception', $ex);
$events->trigger(MvcEvent::EVENT_RENDER_ERROR, $e);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need an else block here; if the condition is met, it won't run continue further regardless.

weierophinney added a commit that referenced this pull request Jan 14, 2013
@weierophinney weierophinney merged commit 93b5784 into zendframework:develop Jan 14, 2013
@ghost ghost assigned weierophinney Jan 14, 2013
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants