PHP CakeRequest::accepts - 4 Beispiele gefunden. Dies sind die am besten bewerteten PHP Beispiele für die CakeRequest::accepts, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.
#### 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.