-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response object on controller set to string since 2.0.36 #18172
Comments
if you have function init() in your controller - read https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md
|
My bad! Thanks :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the problem?
Unsure, for me it is just
$this->redirect()
in a \yii\web\Controller instance. Since 2.0.36. If this is not a known issue (since it was just introduced) let me know I will dig some to see if there is a unique use-case going on here but I don't think so.What is the expected result?
302 redirect
What do you get instead?
Call to a member function redirect() on string
Line 242 of vendor/yiisoft/yii2/web/Controller.php:
return $this->response->redirect(Url::to($url), $statusCode)
Additional info
I can see this object was introduced in 2.0.36. See #18083
The text was updated successfully, but these errors were encountered: