- CLAUDE.md with project structure, DB access, and environment info - docs/ with placeholder files for modular system, hooks/API, and builder fields - .claude/settings.json with Playwright and Fetch MCP servers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
Hooks & Server-Side API
Hooks
Hooks are PHP files in the hooks/ directory that execute server-side logic at specific lifecycle points.
Hook Types
Hook File Naming
Hook Examples
CmsApi
The CmsApi class provides methods to interact with the CMS from hooks.
CocoDB
CocoDB is the database abstraction layer for Acai.
Database Operations
Direct Queries
Table Schemas
Table schemas are stored as JSON files in cms/data/schema/. Each file defines the fields, types, and configuration of a CMS table.