I'm trying to save the display name of a user account using ZfcUser as a base to create my own API, but unfortunately I couldn't. This is my code:
$service = $this->getUserService();
$form = $this->getPostData();
$post = array(
"email" => $form->{'email'},
"password" => $form->{'password'},
"passwordVerify" => $form->{'password'},
"display_name" => $form->{'name'},
"submit" => ""
);
$service->register($post);
return new JsonModel($this->postToArray($form));