Skip to content

Plan 03 batches 3+4+5: router-integration + nav-merge + hello-module - #30

Merged
NickAldewereld merged 1 commit into
mainfrom
cms-core/plan-03-batches-3-4-5-hello-module
Jun 1, 2026
Merged

NickAldewereld merged 1 commit into
mainfrom
cms-core/plan-03-batches-3-4-5-hello-module

Conversation

@NickAldewereld

Copy link
Copy Markdown
Contributor

End-to-end smoke van het module-systeem: curl /hello → 'Hallo wereld' bevestigd live.

  • module-router.php + beheer-entry.php als app-side dispatchers
  • beheer/index.php + layout-top.php integreren module-tabs in admin nav
  • App::current() static accessor voor cross-file App access
  • packages/hello-module/ als eerste concrete consumer (route + tab + hook)
  • 9 hello-module tests, 260 cms-core, 21 tools = 290 totaal

End-to-end demo of the cms-core module system:
- apps/easeo-website/public/module-router.php: fallback dispatcher via App::registry()->routes()->match()
- apps/easeo-website/public/beheer-entry.php: boots App before cms-core beheer/index.php
- router.php: falls through to module-router for unmatched URIs (core routes win)
- beheer/index.php: dispatches module-registered tabs with admin-only enforcement
- beheer/inc/layout-top.php: merges module beheer-pages into sidebar nav dynamically
- App::current() static accessor for cross-file App access post-boot
- packages/hello-module/ v0.1.0: registers GET /hello, hello beheer-tab, cms.footer.before hook
- Composer path-repo wiring in apps/easeo-website (symlinked dev install)
- Smoke: php -S localhost:8000 router.php → curl /hello → 200 "Hallo wereld"
- Tests: 260 cms-core + 21 tools + 9 hello-module = 290 total
@NickAldewereld
NickAldewereld merged commit 2ed66ec into main Jun 1, 2026
2 checks passed
@NickAldewereld
NickAldewereld deleted the cms-core/plan-03-batches-3-4-5-hello-module branch June 1, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant