PHP CakeRequest::allowMethod - 1 examples found. These are the top rated real world PHP examples of CakeRequest::allowMethod extracted from open source projects. You can rate examples to help us improve the quality of examples.
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.