PHP CakeRequest::accepts - 4 exemples trouvés. Ce sont les exemples réels les mieux notés de CakeRequest::accepts extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.
#### 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.