CakeRequest::accepts in PHP: 4 esempi trovati. Questi sono i migliori esempi reali in PHP per CakeRequest::accepts, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.
#### 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.