|
|
fb0321bfd5
|
README: replace outdated how-it-works with ZAP Framework Guide (todo #9)
Replaces the legacy 'how it works' section (which referenced non-existent
index.html, zap.php, display.inc.php, init.php) with a comprehensive
'ZAP Framework Guide' documenting the full application architecture:
- Front-controller routing (?mode=X -> ZAPController -> ZAP{Mode})
- PSR-0 autoloader in conf/init.php
- Config singleton pattern
- Session management (verbatim keys)
- Plugin-based search engines (Search interface, Brave)
- Image processing pipeline (ImgSearch, ImgProcess, ImgIOTools, ImgTools)
- CLI bootstrap pattern (chdir + require_once, session_start skipped in CLI)
- Logging via Log class
Template rendering pipeline documented with:
- ob_start/include/extract/ob_get_clean pattern
- getZAPTemplate() helper
- Step-by-step guide for adding new templates
Interactive elements documented:
- Pattern 1: Form with client-side validation (index.tpl + js/main.js)
- Pattern 2: Polling image display (display.tpl + js/display.js, onload-driven
two-img swap with 5s cadence)
Includes end-to-end summary for creating new features.
|
2026-07-17 01:21:19 +02:00 |
|