CakeRequest::allowMethod in PHP: 1 esempio trovato. Questo è il miglior esempio reale in PHP per CakeRequest::allowMethod, estratto da progetti open source. Lo puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.
Example:
$this->request->allowMethod('post', 'delete');
or
$this->request->allowMethod(array('post', 'delete'));
If the request would be GET, response header "Allow: POST, DELETE" will be set
and a 405 error will be returned.