-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Sunday, 18 March 2007, 05:50 PM -0700):
> and also create isGet (or isQuery) to complement isPost
A request is either a POST or a GET. If you want to see if something was
a GET request, use:
if (!$request->isPost()) {
// GET request
}
It doesn't really make sense to support both since it's a boolean and
the possibilities are GET or POST. The decision to use isPost() is due
to the fact that most request methods will be GET anyways; you'll
typically code a check for a POST request.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/