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']を取得、といった具合です。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">