输入banner图图片脚本导航/分类

zf判断请求是否来自XMLHttpRequest对象的方法

  1. /*
  2. * * Is the request a Javascript XMLHttpRequest?
  3. * * Should work with Prototype/Script.aculo.us, possibly others.
  4. * * @return boolean
  5. */
  6. public function isXmlHttpRequest() {
  7. return (
  8. $this->getHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');
  9. }