PHP CakeRequest::accepts - 4 примера найдено. Это лучшие примеры PHP кода для CakeRequest::accepts, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.
#### 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.