i was wondering about where Zends functionality comes from when inside of a controller i call
$this->getRequest()->isPost()
It works, but i do not find where this “isPost()” function comes from.
I just noticed it because i don’t have intellisense for that.
Question is:
Is this merely some fallback function that “newbie users” use apart from a better alternative?
Or is it perfectly valid using it?
Thanks 🙂
It is the official way to go, you can use it. Check the source code of
Zend_Controller_Request_Http::isPost()to see what it really is doing, if you’d like 🙂