load->model('CheckUserAuth_model', 'CheckUserAuthModel'); } public function getCheckByUsernamePassword() { $username = $this->get("username"); $password = $this->get("password"); if (isset($username) && isset($password)) { $result = $this->CheckUserAuthModel->checkByUsernamePassword($username, $password); $this->response($result, REST_Controller::HTTP_OK); } else { $this->response(); } } }