private function _logout($res) { $logout = UserUtils::logout(); return $this->makeErrorInfo($res, $logout['message'], array('noError' => 1)); }
public function actionLogout() { UserUtils::logout(); $this->redirect(Yii::app()->createAbsoluteUrl('admin/index')); }