PHP CakeRequest::allowMethod - 1 ejemplos encontrados. Estos son los ejemplos en PHP del mundo real mejor valorados de CakeRequest::allowMethod extraídos de proyectos de código abierto. Puedes valorar ejemplos para ayudarnos a mejorar la calidad de los ejemplos.
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.