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

Dynamic Controller::respondTo #35

Open
mediaslave opened this issue Jul 26, 2011 · 0 comments
Open

Dynamic Controller::respondTo #35

mediaslave opened this issue Jul 26, 2011 · 0 comments

Comments

@mediaslave
Copy link
Owner

If the extension in the url is .json:

www.domain.com/users.json

and there is no respondTo(array('json')) the the system will automaticall look for a view for that action that would be named:

{action}.json.php

The same goes for xml, yml and any other type:

{action}.xml.php
{action}.yml.php

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

1 participant