public function isAjax() { return strtolower($this->getServer('HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest'; }