Skip to content
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

Respond method #2669

Closed
leandrogehlen opened this issue Mar 8, 2014 · 1 comment
Closed

Respond method #2669

leandrogehlen opened this issue Mar 8, 2014 · 1 comment

Comments

@leandrogehlen
Copy link
Contributor

I thought interesting the philosophy of existing respond method in grails

I think it could be implemented in yii2

according to type of the request type is automatically set in response
example :
in url:

http://localhost/index.php?r=person/show/1.json

then

Yii::$app->response->format = Response::FORMAT_JSON; 
@qiangxue
Copy link
Member

qiangxue commented Mar 8, 2014

Duplicate of #2034

@qiangxue qiangxue closed this as completed Mar 8, 2014
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

No branches or pull requests

2 participants