Membership system for Bono CMS: member accounts, authentication, profiles, a public directory, tags, optional profile moderation, 1-to-1 private messaging, and an events extension with analytics. Ships a server-rendered site area (Bootstrap 5) and a JSON API (JWT) for mobile apps and SPAs.
Cms module loaded (language manager, mailer)Cms module (registration and recovery emails)Everything lives in Config/module.config.php.
'moderation' => [
'enabled' => true,
'fields' => [
'reserved' => ['id', 'password', 'remove_avatar', 'email'],
'skip' => ['phone', 'password'],
'translatable' => ['bio', 'title', 'name'],
'base' => ['address', 'avatar', 'company'],
],
],
| Key | Meaning |
|---|---|
enabled |
Master switch. When false, every profile edit applies immediately. |
reserved |
Fields that never enter the pipeline. |
skip |
Base fields applied immediately even when moderation is on. |
translatable |
Translated fields staged for review. |
base |
Base fields staged for review. |
With the default config, phone and country apply immediately;
address, company, avatar, name, title and bio are staged for
admin approval. The email and password are never editable through the
profile form.
'extensions' => [
'events' => [
'enabled' => true,
'ip_hash_salt' => 'REPLACE-ME-with-a-long-random-string',
],
],
| Key | Meaning |
|---|---|
enabled |
Master switch for the events feature. |
ip_hash_salt |
Salt for analytics deduplication. Replace in production. |
'api' => [
'jwt_secret' => 'REPLACE-ME-with-a-long-random-string-at-least-32-chars',
'jwt_ttl' => 604800, // 7 days
],
Replace jwt_secret before enabling the API. If it's empty or left as the
placeholder, every protected request is rejected or every token is forgeable.
name, title, bio) per languageclient_id)00:00 are treated as
date-only; the time portion is hidden in all display helpers/events shows only upcoming (non-expired) events;
/events/archive shows past events without a map| URL | Page | Auth |
|---|---|---|
/member/login |
Login | Guest |
/member/register |
Registration | Guest |
/member/recovery |
Password recovery | Public |
/member/profile |
Member dashboard | Login |
/member/profile/edit |
Edit profile + tags | Login |
/members |
Public directory | Public |
/member/profile/(:var) |
Public profile | Public |
/member/messages |
Chat inbox | Login |
/member/messages/conversation/(:var) |
Chat thread | Login |
/events |
Events catalog + map (actual only) | Public |
/events/archive |
Past events (no map) | Public |
/events/(:var) |
Event detail | Public |
/events/(:var)/go |
Click tracker → redirect | Public |
/member/events |
My events dashboard | Login |
/member/events/create |
Create event form | Login |
/member/events/edit/(:var) |
Edit event form | Login |
/member/events/analytics/(:var) |
Event analytics | Login |
"Login" = redirected to the login page if not authenticated. "Guest" = redirected to the profile if already logged in.
All under /<admin>/module/members:
| Path | Purpose |
|---|---|
/ |
Members grid |
/add, /edit/(:var) |
Create / edit a member |
/changes |
Review pending profile changes |
/history/(:var) |
Change history for a member |
/tags |
Tag groups |
/tags/group/(:var) |
Tags inside a group |
/events |
Events grid (sorted by event date) |
/events/create |
Create an association event |
/events/edit/(:var) |
Edit any event |
/events/analytics |
Global analytics dashboard |
/events/analytics/(:var) |
Per-event analytics |
The module ships templates in View/Template/site/ (wrapped by
__layout__.phtml) and View/Template/admin/. Email bodies live in
View/Template/messages/. Override any of them in your theme.
$languages // Active language entities
$isLoggedIn // bool
$meId // Current member id (0 when logged out)
$unreadMessagesCount // Unread messages across conversations
$languages is also available in every admin template.
$member->getId();
$member->getName();
$member->getDisplayName(); // name → email → "#<id>"
$member->getEmail();
$member->getPhone();
$member->getCompany();
$member->getCountry(); // ISO 3166-1 alpha-2
$member->getCountryName(); // human-readable, or null
$member->getAddress();
$member->getTitle();
$member->getBio();
$member->getConfirmed();
$member->hasAvatar();
$member->getAvatarUrl('256x256');
Avatar size constants: AVATAR_THUMB (64x64), AVATAR_SMALL (256x256),
AVATAR_PROFILE (256x256).
$event->getId();
$event->getLangId();
$event->getTitle();
$event->getDescription();
$event->getOrganizer(); // translatable, or null
$event->getOrganizerName(); // organizer → creator name → ""
$event->getLink();
$event->getLocationName();
$event->getLatitude();
$event->getLongitude();
$event->getStartsAt(); // "Y-m-d H:i:s"
$event->getEndsAt();
$event->getStatus(); // pending | approved | rejected
$event->getCreatorName(); // null for association events
$event->getCover();
$event->getViewsCount();
$event->getClicksCount();
// Display helpers
$event->getDisplayTitle(); // title, else "#<id>"
$event->getShortDescription(150);
$event->getFormattedDate(); // "Nov 22, 2026"
$event->getFormattedTime(); // "18:55" or "" for midnight
$event->getFormattedStartDateTime();
$event->getFormattedEndTime(); // "22:00" or "" for midnight
$event->getTimeRange(); // "18:55 — 22:00", "18:55", or ""
$event->getStartMonth(); // "NOV"
$event->getStartDay(); // 22
$event->getDirectionsUrl();
// Predicates
$event->isPast(); // uses ends_at when set, else starts_at
$event->isOfficial(); // creator_id is null
$event->hasLink();
$event->hasLocation();
$event->hasCoordinates();
$event->hasDescription();
$event->hasOrganizer();
$event->hasCreator();
$event->hasCover();
$event->hasStartTime(); // false when time is 00:00
$event->hasEndTime(); // false when time is 00:00
$event->getCoverUrl(EventEntity::COVER_CARD); // THUMB, CARD, FULL
// Status display
$event->getStatusBadgeClass(); // warning | success | danger
$event->getStatusTranslationKey();
$event->getConversionRate();
Cover size constants: COVER_THUMB (400x225), COVER_CARD (800x450),
COVER_FULL (1600x900).
An event with a start or end time of 00:00 is treated as a date-only
event. hasStartTime() / hasEndTime() return false, and
getFormattedTime() / getFormattedEndTime() return an empty string.
getTimeRange() returns the full range when both times are meaningful,
just the start time when only the start is meaningful, or "" when the
start is midnight.
isPast() and the SQL COALESCE(ends_at, starts_at) expression used by
the mapper agree on when an event expires:
ends_at is set, the event expires at ends_at.starts_at.This rule is shared between EventEntity::isPast() and
EventMapper::getExpiryExpression().
Both event forms (admin and member) share the same three top-level tabs:
| Tab | Fields |
|---|---|
| Main | Language tabs (Title, Description, Organizer), Registration link, Cover image |
| Location | Location name, Map URL, Coordinates |
| Schedule | Starts at, Ends at |
Language tabs are nested inside Main. Content fields post as
translation[<langId>][title|description|organizer]. Shared fields post as
event[...]. The cover uploads as file.
Both forms carry enctype="multipart/form-data" and novalidate.
The schedule inputs are datetime-local (Y-m-d\TH:i); the templates
normalize the entity's Y-m-d H:i:s values before rendering.
Three assets, all auto-initializing on DOM ready:
| Asset | Selector | Purpose |
|---|---|---|
event-form.js |
[data-event-form] |
Map URL parser + validation gate |
event-analytics.js |
[data-event-analytics] |
Chart.js renderer |
event-map.js |
[data-event-location-map] |
Single-event Leaflet map |
Include after jQuery 3.x:
<?php $this->getPluginBag()->appendScript($this->moduleAsset('event-form.js', 'Members')); ?>
event-form.js requires data-parse-url and novalidate on the form. It
parses map URLs into coordinates and gates form submission so the browser
doesn't silently block on a required field inside a hidden tab.
event-analytics.js requires Chart.js 4.x and reads data-daily-stats /
data-source-stats JSON attributes.
event-map.js is used only on the single-event detail page. It reads
data-latitude, data-longitude, data-location-name from its container
and renders a Leaflet map with a single marker.
The catalog map on /events is rendered server-side by EventsMapWidget,
which receives all non-expired events with coordinates from the controller
(no AJAX). The widget builds the configuration array consumed by the
framework's map renderer service.
To disable auto-init, set window.EventForm.autoInit = false (etc.) before
loading the script.
JSON API under /api/v1/members/. Uses JWT bearer tokens instead of cookies. Every endpoint accepts an optional ?lang=xx parameter to select the language for translated fields.
The API is split into four areas:
| Area | Covers |
|---|---|
| Auth | Login, password recovery, token validation, registration |
| Members | Own profile, avatar, password, public directory and profiles |
| Chat | Conversations, threads, sending, polling, unread counters |
| Events | Public catalog, map, click tracking, event creation, analytics |
Protected endpoints expect:
Authorization: Bearer <token>
Tokens are issued by the login endpoint, valid for api.jwt_ttl seconds. No refresh flow — re-login when expired. A missing or invalid token yields
401 { "error": "Unauthorized" }.
All paths below are relative to /api/v1/members/. Error payloads and
status codes are shared across all areas — see Error shape
and Status codes.
Login, password recovery, token validation, and registration.
| Method | Endpoint | Auth |
|---|---|---|
| POST | /auth/login |
Public |
| POST | /auth/recovery |
Public |
| GET | /auth/whoami |
Protected |
| POST | /register |
Public |
| POST | /register/resend |
Protected |
POST /api/v1/members/auth/login — public.
| Name | Type | Required | Notes |
|---|---|---|---|
identifier |
string | yes | Email address |
password |
string | yes | Plain-text |
200:
{
"token": "eyJhbGci...",
"user": { "id": 42, "name": "Jane Doe", "email": "jane@example.com", "confirmed": true }
}
Errors: 400 missing credentials, 401 wrong identifier or password.
POST /api/v1/members/auth/recovery — public.
Sends a password recovery email. The response is identical regardless of whether the email matches an account, to prevent enumeration.
| Name | Type | Required |
|---|---|---|
email |
string | yes |
202:
{
"message": "If an account exists with that email, a reset link has been sent."
}
GET /api/v1/members/auth/whoami — protected.
Validates the current JWT and returns fresh user data. Useful for the client to check if the token is still valid on app startup.
200:
{
"id": 42,
"name": "Jane Doe",
"email": "jane@example.com",
"confirmed": true,
"avatar": "https://..."
}
Errors: 401.
POST /api/v1/members/register — public.
Registers a new member account. Sends a confirmation email with an activation link.
| Name | Type | Required | Notes |
|---|---|---|---|
translation[<langId>][name] |
string | yes | Min 2 chars. <langId> may be a code (en) |
member[email] |
string | yes | Valid, unique |
member[password] |
string | yes | Min 6 chars |
201:
{
"message": "Registration successful. Please check your email to confirm your account."
}
Errors: 422 validation, 500 save failure.
POST /api/v1/members/register/resend — protected.
Resends the registration confirmation email to the authenticated user. Returns an error if the account is already confirmed.
200:
{
"message": "A new confirmation email has been sent."
}
Errors: 401, 409 already confirmed.
The authenticated member's own profile, plus the public directory and public profiles.
| Method | Endpoint | Auth |
|---|---|---|
| GET | /me |
Protected |
| POST | /me/update |
Protected |
| POST | /me/avatar |
Protected |
| POST | /me/password |
Protected |
| GET | / |
Public |
| GET | /profile |
Public |
GET /api/v1/members/me — protected.
Returns the authenticated member's full profile, selected tags, and any pending moderation changes.
200:
{
"user": {
"id": 42, "name": "Jane Doe", "login": null, "email": "jane@example.com",
"confirmed": true, "company": "Acme", "phone": "+1 555 0100",
"country": "us", "address": "123 Main St", "title": "Engineer",
"bio": "I build things.", "avatar": "https://..."
},
"tags": {
"selected": [1, 5, 9],
"available": [{ "group": {...}, "tags": [{ "id": 1, "label": "Hiking" }] }]
},
"pendingChanges": [{ "id": 17, "member_id": 42, "status": "pending", "payload": "...", "created_at": "..." }]
}
Errors: 401, 404.
POST /api/v1/members/me/update — protected. Multipart.
Updates the authenticated member's profile fields and tag selection. Fields go through the moderation pipeline if enabled. Only the language selected by ?lang= (or the active language) is accepted for translations.
| Name | Type | Required | Notes |
|---|---|---|---|
translation[<langId>][name] |
string | yes | Min 2 chars |
translation[<langId>][title] |
string | no | |
translation[<langId>][bio] |
string | no | |
member[phone] |
string | no | Applied immediately |
member[country] |
string | no | ISO 3166-1 alpha-2 |
member[company] |
string | no | |
member[address] |
string | no | |
member[remove_avatar] |
flag | no | |
tags[] |
int[] | no | |
file |
file | no | Avatar image |
200:
{
"message": "Your changes were submitted for review.",
"user": { ... },
"pendingChanges": [ ... ]
}
Errors: 401, 422.
POST /api/v1/members/me/avatar — protected. Multipart.
Uploads a new avatar image. The change goes through the moderation pipeline if enabled.
| Name | Type | Required |
|---|---|---|
file |
file | yes |
200:
{
"message": "Your changes were submitted for review.",
"avatar": "https://..."
}
Errors: 401, 422.
POST /api/v1/members/me/password — protected.
Updates the authenticated member's password. Bypasses moderation and applies immediately.
| Name | Type | Required | Notes |
|---|---|---|---|
password |
string | yes | Min 6 |
204:
{
"success": true
}
Errors: 401, 422.
GET /api/v1/members — public. Paginated, 20 per page, random order.
| Name | Type | Required | Notes |
|---|---|---|---|
page |
int | no | Default 1 |
country |
string | no | ISO 3166-1 alpha-2 |
company |
string | no | Exact match |
tags[] |
int[] | no | Any-of |
lang |
string | no |
200:
{
"data": [{ "id": 42, "name": "Jane Doe", "title": "Engineer", "company": "Acme", "country": "us", "bio": "...", "avatar": "https://..." }],
"meta": { "page": 1, "perPage": 20, "total": 137, "totalPages": 7 },
"filters": { "applied": {...}, "available": { "countries": [...], "companies": [...], "tags": [...] } }
}
GET /api/v1/members/profile?id=42 — public.
Returns the public profile of a confirmed member, including their selected tags. Excludes private fields like email, phone, and address.
200:
{
"user": {
"id": 42,
"name": "...",
"title": "...",
"company": "...",
"country": "us",
"bio": "...",
"avatar": "..."
},
"tags": [ ... ]
}
Errors: 400, 404.
1-to-1 private messaging. All endpoints are protected.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /chats |
Inbox |
| GET | /chat/thread |
Message history |
| POST | /chat/send |
Send (idempotent via client_id) |
| POST | /chat/start |
Find or create a conversation |
| GET | /chat/poll |
New messages since an id |
| GET | /chat/unread |
Total unread count |
GET /api/v1/members/chats — protected.
Returns the authenticated member's inbox: a list of conversations sorted by newest activity, with unread counters and the last message preview.
200:
{
"data": [
{
"id": 7,
"type": "direct",
"displayName": "John Smith",
"other": { ... },
"lastMessage": { ... },
"lastMessageAt": "...",
"messageCount": 42,
"unreadCount": 2,
"mutedUntil": null
}
]
}
GET /api/v1/members/chat/thread?id=7 — protected.
Returns the message history of a conversation in ascending order. Marks the thread as read up to the newest message.
| Name | Type | Required | Notes |
|---|---|---|---|
id |
int | yes | Conversation id |
before |
int | no | Load-earlier pagination |
200: ascending message list, marks thread read.
Errors: 400, 401, 403.
POST /api/v1/members/chat/send — protected.
Sends a text message to a conversation. Supports idempotent retries via client_id.
| Name | Type | Required | Notes |
|---|---|---|---|
conversation_id |
int | yes | |
body |
string | yes | Max 5000 chars |
client_id |
string | no | UUID for idempotent retry |
201:
{
"id": 101
}
Errors: 401, 403, 422.
POST /api/v1/members/chat/start — protected.
Finds an existing direct conversation with the given member, or creates a new one. Returns the conversation id.
| Name | Type | Required |
|---|---|---|
member_id |
int | yes |
200:
{
"conversationId": 7
}
Errors: 400, 401, 422.
GET /api/v1/members/chat/poll?id=7&since=100 — protected.
Returns messages newer than the given since id. Used by the client to implement real-time updates via long polling. Advances the read cursor.
200: messages newer than since, ascending.
GET /api/v1/members/chat/unread — protected.
Returns the total number of unread messages across all conversations for the authenticated member.
200:
{
"count": 3
}
Public catalog, map and click tracking, plus member event management and analytics.
| Method | Endpoint | Auth |
|---|---|---|
| GET | /events |
Public |
| GET | /events/view/:id |
Public |
| GET | /events/:id/click |
Public |
| GET | /events/render/map |
Public |
| POST | /events/store |
Protected |
| GET | /me/events |
Protected |
| GET | /me/events/:id/analytics |
Protected |
GET /api/v1/members/events — public. Paginated, 20 per page.
| Name | Type | Required |
|---|---|---|
page |
int | no |
lang |
string | no |
200:
{
"data": [
{
"id": 101,
"cover": "https://cdn.example.org/events/101/800x450/sf-dev-breakfast.jpg",
"title": "Morning Coffee & Systems Architecture",
"description": "Casual morning roundtable on distributed queues, caching, and API design.",
"organizer": "Pacific Systems Guild",
"link": "https://example.org/events/101/rsvp",
"locationName": "Ferry Building Plaza, San Francisco",
"latitude": 37.7955,
"longitude": -122.3937,
"startsAt": "2026-12-08 08:30:00",
"endsAt": "2026-12-08 10:30:00",
"status": "approved",
"creatorName": "Hannah Brooks",
"viewsCount": 248,
"clicksCount": 42
},
{
"id": 102,
"cover": "https://cdn.example.org/events/102/800x450/nyc-product-workshop.jpg",
"title": "Hands-On Design Systems & Accessibility Clinic",
"description": "Practical session auditing keyboard navigation, contrast ratios, and component tokens.",
"organizer": "Hudson Product Collective",
"link": "https://example.org/events/102/rsvp",
"locationName": "Chelsea Innovation Hub, New York",
"latitude": 40.7465,
"longitude": -74.0014,
"startsAt": "2026-12-11 14:00:00",
"endsAt": "2026-12-11 17:00:00",
"status": "approved",
"creatorName": "Marcus Chen",
"viewsCount": 519,
"clicksCount": 87
},
{
"id": 103,
"cover": "https://cdn.example.org/events/103/800x450/austin-founders-night.jpg",
"title": "Bootstrapped SaaS & Pricing Teardown",
"description": "Founder-led discussion covering unit economics, retention cohorts, and annual billing.",
"organizer": "Lone Star Builders",
"link": "https://example.org/events/103/rsvp",
"locationName": "Congress Avenue Loft, Austin",
"latitude": 30.2672,
"longitude": -97.7431,
"startsAt": "2026-12-15 18:00:00",
"endsAt": "2026-12-15 21:00:00",
"status": "pending",
"creatorName": "Devon Alvarez",
"viewsCount": 164,
"clicksCount": 29
},
{
"id": 104,
"cover": "https://cdn.example.org/events/104/800x450/chicago-data-summit.jpg",
"title": "Analytics Engineering & SQL Performance Lab",
"description": "Live query profiling, indexing strategies, and warehouse cost optimization.",
"organizer": "Midwest Data Forum",
"link": "https://example.org/events/104/rsvp",
"locationName": "River North Studio, Chicago",
"latitude": 41.8924,
"longitude": -87.6341,
"startsAt": "2026-12-18 10:00:00",
"endsAt": "2026-12-18 13:00:00",
"status": "approved",
"creatorName": "Rachel Kowalski",
"viewsCount": 312,
"clicksCount": 54
}
],
"meta": {
"page": 1,
"perPage": 20,
"total": 42,
"totalPages": 3
}
}
cover and creatorName are null when absent. Only events with a
translation for the requested language are returned.
GET /api/v1/members/events/view/:id — public. Records a view.
Returns the full details of a single approved event. Records a view analytics event for the visitor.
200:
{
"data": [
{
"id": 105,
"cover": "https://cdn.example.org/events/105/800x450/seattle-cloud-meetup.jpg",
"title": "Edge Computing & Low-Latency APIs",
"description": "Evening walkthrough of edge routing, regional caching, and cold-start benchmarks.",
"organizer": "Cascadia Cloud Group",
"link": "https://example.org/events/105/rsvp",
"locationName": "South Lake Union Hall, Seattle",
"latitude": 47.6231,
"longitude": -122.3364,
"startsAt": "2026-12-21 17:30:00",
"endsAt": "2026-12-21 20:00:00",
"status": "approved",
"creatorName": "Claire Bennett",
"viewsCount": 415,
"clicksCount": 68
},
{
"id": 106,
"cover": "https://cdn.example.org/events/106/800x450/denver-devops-sync.jpg",
"title": "Zero-Downtime Migrations & Observability",
"description": "Practical breakdown of schema rollouts, structured logs, and alert tuning.",
"organizer": "Front Range SRE Meetup",
"link": "https://example.org/events/106/rsvp",
"locationName": "LoDo Tech Commons, Denver",
"latitude": 39.7527,
"longitude": -105.0001,
"startsAt": "2026-12-23 18:00:00",
"endsAt": "2026-12-23 20:30:00",
"status": "approved",
"creatorName": "David Morales",
"viewsCount": 289,
"clicksCount": 47
}
]
}
Errors: 404.
GET /api/v1/members/events/:id/click — public.
Returns the event's registration link and records a click analytics event. Used to track conversions when the user clicks "Sign up".
200:
{
"link": "https://example.com/register"
}
Errors: 404.
GET /api/v1/members/events/render/map — public. No pagination.
| Name | Type | Required | Notes |
|---|---|---|---|
period |
string | no | upcoming (default), past, or all |
from |
string | no | starts_at >= from (MySQL datetime) |
to |
string | no | starts_at <= to |
bbox |
string | no | minLat,minLng,maxLat,maxLng |
limit |
int | no | Default 500, max 1000 |
lang |
string | no | Language of returned titles |
By default, only non-expired events are returned (period=upcoming),
matching the web catalog.
200:
{
"data": [
{
"id": 42,
"title": "Community Tech & Product Mixer",
"latitude": 37.7955,
"longitude": -122.3937,
"location_name": "Ferry Building Plaza, San Francisco",
"starts_at": "2026-12-05 18:30:00",
"url": "https://example.com/events/42"
},
{
"id": 43,
"title": "Backend Architecture & Performance Session",
"latitude": 40.7465,
"longitude": -74.0014,
"location_name": "Chelsea Innovation Hub, New York",
"starts_at": "2026-12-10 17:00:00",
"url": "https://example.com/events/43"
}
],
"meta": {
"total": 2,
"limit": 500,
"clipped": false
}
}
Note: this endpoint returns snake_case keys and a reduced row — it
differs from every other events endpoint. url is an absolute URL to the
event's public web page, built from the request's base URL. Malformed
bbox or non-numeric limit are silently ignored.
POST /api/v1/members/events/store — protected. Multipart.
Creates a new event on behalf of the authenticated member. The event is created with pending status and requires admin approval.
| Name | Type | Required | Notes |
|---|---|---|---|
translation[<langId>][title] |
string | no | Max 200 |
translation[<langId>][description] |
string | no | |
translation[<langId>][organizer] |
string | no | Max 200 |
translation[<langId>][lang_id] |
int | yes | Same as <langId> |
event[location_name] |
string | yes | Max 255 |
event[starts_at] |
string | yes | Y-m-d H:i:s |
event[link] |
string | no | Max 500 |
event[latitude] |
float | no | |
event[longitude] |
float | no | |
event[location_source] |
string | no | none | manual | url |
event[ends_at] |
string | no | |
file |
file | no | Cover image |
201:
{
"id": 42,
"message": "The event has been created and is pending review"
}
Errors: 401, 422.
GET /api/v1/members/me/events — protected.
Returns the authenticated member's own events along with an aggregated summary dashboard (total views, clicks, conversion rate).
200:
{
"data": [ ... ],
"summary": {
"eventCount": 5,
"totalViews": 420,
"totalClicks": 63,
"conversion": 15.0
},
"meta": { ... }
}
GET /api/v1/members/me/events/:id/analytics — protected.
Returns detailed analytics for a specific event owned by the authenticated member, including 14-day daily trends and traffic source breakdown.
200:
{
"data": {
"event": { ... },
"views": 120,
"clicks": 15,
"conversion": 12.5,
"dailyStats": [ ... ],
"sourceStats": [ ... ]
}
}
Errors: 401, 404.
Shared across all API areas.
Non-validation errors:
{
"error": "Human-readable message"
}
Validation errors (422):
{
"errors": {
"member[email]": ["This email is already taken"]
}
}
Shared across all API areas.
| Code | Meaning |
|---|---|
| 200 | OK |
| 201 | Created |
| 202 | Accepted (recovery request) |
| 204 | No content (password change) |
| 400 | Malformed request |
| 401 | Missing / expired / forged JWT, or member deleted |
| 403 | Not a participant |
| 404 | Not found, or hidden by language / confirmation state |
| 409 | Conflict (resend when already confirmed) |
| 422 | Validation failure |
| 500 | Unhandled server error |
User-facing strings are translation keys in English. Add a language by
creating Translations/<code>/messages.php returning a key => translation
array.
Content translations (member names, event titles, tag labels) live in
_translations tables and are managed through the forms, not message files.
Adding a language in the Cms module adds a tab to every multilingual form
automatically.
moderation.enabled = false,
uploaded avatars are not processed.$this->translator->translate().snake_case keys unlike every other events
endpoint, and silently ignores malformed bbox / limit parameters.COALESCE(ends_at, starts_at) expiry expression is not sargable.
At a few thousand events this is irrelevant; if the table grows, add a
stored generated column expires_at AS COALESCE(ends_at, starts_at) STORED
with an index and point the expression at it.