Zend Framework – Zend_Controller_Requestで使えるgetメソッド

Zend_Controller_Requestで使えるメソッドですが、IDEなどで行っているとコード補完で出てくるメソッドが、Zend_Controller_Request_Abstractの持つメソッドしか出てこないので、大概の場合Zend_Contoller_Request_Httpの物も使えますよ、ということで。もちろん大概の場合というのはHTTPリクエストをしている場合、ということですが。

[php]
$this->_request->getRequestUri());
$this->_request->getServer());
$this->_request->getEnv());
[/php]

などなど。
$this->_request->getServer()は$_[‘SERVER’]を取得、といった具合です。