-
-
Notifications
You must be signed in to change notification settings - Fork 5
Protected globals
Greg Bowler edited this page May 9, 2026
·
3 revisions
- Explain hidden coupling and unpredictable state.
- Explain the security and maintainability issues of raw superglobals.
- Cover
$_GET,$_POST,$_FILES,$_COOKIE,$_SERVER, and related global state. - Explain the framework’s object-oriented replacements.
- Encourage explicit dependencies through services and parameters.
- Explain why this improves testability.
- Explain the term "encapsulation" and the benefits it brings to code.
- Environment variables.
- PHP runtime behaviour.
- Third-party libraries that assume globals. Exaplin how to whitelist or reconstruct.
In the next section we will learn how to build API responses.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP