Changing docs in CakeRequest:accepts() as they were misleading, you are required to pass a correct mimetype and not an alias

This commit is contained in:
José Lorenzo Rodríguez 2012-06-26 14:38:07 -05:30
parent 93123a8e6f
commit 476209df03

View file

@ -656,7 +656,7 @@ class CakeRequest implements ArrayAccess {
*
* #### Check for a single type:
*
* `$this->request->accepts('json');`
* `$this->request->accepts('application/json');`
*
* This method will order the returned content types by the preference values indicated
* by the client.