tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

Add http-method to request #57

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

I want to check which HTTP method used via $this->request->method.

tanakahisateru commented 12 years ago

Considering real usage:

if($this->request->method == 'POST')

is not so far from:

if($this->request->server->get('HTTP_METHOD') == 'POST')

Then, I'm adding isGet, isPost or such as.