Skip to content

Update formats.rst #7129

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

Closed
wants to merge 1 commit into from
Closed

Update formats.rst #7129

wants to merge 1 commit into from

Conversation

ibronit
Copy link
Contributor

@ibronit ibronit commented Nov 9, 2016

The controller is a little bit confusing. I think it should be a showAction, since it's name is article_show and it gets an id as parameter.

The controller is a little bit confusing. I think it should be a showAction, since it's name is article_show and it gets an id as parameter.
@xabbuh
Copy link
Member

xabbuh commented Nov 11, 2016

The complete article is very inconsistent. At the beginning it is talking about index.html.twig and index.xml.twig files which does match the action name. But then we switch to contact.html.twig and contact.xml.twig templates and the route then is article_show. I suggest that we update the chapter and always use the contact example.

@xabbuh xabbuh mentioned this pull request Nov 12, 2016
@ibronit
Copy link
Contributor Author

ibronit commented Nov 14, 2016

You're right. I will fix those parts as well:)

@wouterj
Copy link
Member

wouterj commented Apr 15, 2017

Hi @berbadger! Thanks for starting this great PR, this article is indeed pretty inconsistent. I've taken your commits and added two of my own in order to make the article 100% consistent and to add a small tip: #7800

You're commits are kept in that PR, so you still get all credits you deserve. Thanks for helping us and I hope to see you back! :)

@wouterj wouterj closed this Apr 15, 2017
xabbuh added a commit that referenced this pull request May 12, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Improved the Templating formats article

This continues (and replaces) #7129 . It also adds a minor tip about FOSRestBundle's format listener, as I think it's a quite usefull tool when talking about request formats.

Commits
-------

dfe9d11 Mentioned FOSRestBundle's content negotiation
90924db Used the article example consistently in the example
5862c75 Update formats.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants