public function redirectOk() { if ($this->isAjax()) { return $this->ajaxResponse(array('ok' => true, 'url' => $this->getOkUrl())); } return parent::redirectOk(); }
public function redirectOk() { if ($this->isAjax()) { header("Content-type: text/plain; charset=UTF-8"); header('HTTP/1.0 200 OK'); echo $this->getJson(array('ok' => true, 'adminLogin' => $this->getAuth()->getUsername())); } else { parent::redirectOk(); } }