diff --git a/docs/module-creation-guide.md b/docs/module-creation-guide.md index 4e2640d..424e3f0 100644 --- a/docs/module-creation-guide.md +++ b/docs/module-creation-guide.md @@ -37,6 +37,9 @@ Each module lives in `template/estandar/modulos//` with: ## Creating a Module — Full Workflow +If the module needs server-side logic, dynamic data processing, form handling, or reusable backend behavior, read `docs/hooks-and-api.md` before creating `hook.php` or any global hook. +If the module will call hooks from Twig, also review `docs/twig-filters.md` for the `hook` filter syntax. + 1. **Read style reference** (steps above) 2. **`acai-write`** — Create the module files directly (`index-base.tpl`, `style.css`, `script.js`, optional `hook.php`) using project-relative paths and complete file contents. - If the server-side logic belongs only to that module, create `template/estandar/modulos//hook.php`