Zend Framework: Ajaxリクエストの検出

Zend Framework: Documentation

10.4.2.4. AJAX リクエストの検出

Zend_Controller_Request_Http には、 AJAX リクエストを検出するための基本的なメソッド isXmlHttpRequest() が用意されています。 このメソッドは、HTTP リクエストヘッダ X-Requested-With に ‘XMLHttpRequest’ という値が設定されているかどうかを調べ、 設定されている場合に true を返します。

ちょいちょいドキュメントは確認しているんですが、こんなのも追加されていたんですね。ふむふむ。

関連する記事:

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="">