public static getLastError ( ) : string | ||
Résultat | string | Error message (or empty string) |
public static function getLastError()
{
return self::getDatasource()->lastError;
}
public function deleteGroupAction(int $id) { if (Gatekeeper::deleteGroupById($id)) { $this->flasher->success('Group deleted'); } else { $this->flasher->error('Group not deleted.'); if ($this->site['debug']) { $this->flasher->error(Gatekeeper::getLastError()); } } $this->redirect('/users/groups'); }