Skip to content

Conversation

@bicf
Copy link
Contributor

@bicf bicf commented Nov 14, 2014

To avoid the "$application->run();" after the redirect.

Without the end() call, the page will be rendered but not show because of the "302" of the answer, than it will be rendered again.

This's a big wasting resources and, that was my the problem, "burn" the flash messages.

@mikehaertl
Copy link
Collaborator

Oops, I totally missed this pull request, sorry. Thanks for pointing that out. I wasn't aware that in yii2 the app is not ended anymore if you call redirect(). That's different from Yii 1.

mikehaertl added a commit that referenced this pull request Jan 7, 2015
Add "Yii::$app->end();" after redirect
@mikehaertl mikehaertl merged commit 4485e0c into codemix:master Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants