PHP CakeRequest::accepts - 4 examples found. These are the top rated real world PHP examples of CakeRequest::accepts extracted from open source projects. You can rate examples to help us improve the quality of examples.
#### Get all types:
$this->request->accepts();
#### Check for a single type:
$this->request->accepts('application/json');
This method will order the returned content types by the preference values indicated
by the client.