public function post_add_client_account() { $clientID = \Input::post('ClientID'); $password = \Input::post('Password'); // -- Check that the Client Exists and hasn't already got an account // ----------------------------------------------------------------- // -- Add the Client // ----------------- if (Model_ClientArea::addClient((int) $clientID, $password) === true) { $status = 'success'; } else { $status = 'failed'; } $this->response(array('status' => $status, 'message' => '', 'data' => array())); }