Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created September 11, 2009 17:07
Show Gist options
  • Save tobiastom/185425 to your computer and use it in GitHub Desktop.
Save tobiastom/185425 to your computer and use it in GitHub Desktop.
public function deleteAction($identifier) {
$this->user = \User\User::instanceWithId($identifier);
if (!$this->user) {
return self::NotFoundStatus;
}
if ($this->request->isConfirmed()) {
$this->user->delete();
$this->response->layoutVariant = 'Successful';
return self::DeletedStatus;
}
return self::SuccessStatus;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment