5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ZendFrameworkでパラメータ取得

Posted at

パラメータの取得の比較

通常時とZendでの取得方法を比較。
両方使ったことあると、なんか迷う。

GETパラメータの取得

通常
$_GET['key'];
Zend
$this->getRequest()->getQuery('key');

POSTパラメータの取得

通常
$_POST['key'];
Zend
$this->getRequest()->getPost('key');

Cookieの取得

通常
$_COOKIE['cookie'];
Zend
$this->getRequest()->getCookie('cookie');
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?