CI4 Interview Prep
5 min read Quiz at the end
Interview topics: CI4 vs CI3, Spark, Filters, Entities, allowedFields, ResourceController, flash data.
CI4 Interview Topics
- CI4 vs CI3 — PSR-4 namespaces, PSR-7 HTTP, Entities, modern PHP 8
- Spark vs Artisan — both CLI tools; Spark is simpler
- Filters vs Middleware — CI4 calls them Filters; same concept
- Entity vs Array — Entities provide typed properties, getters/setters
- allowedFields — prevents mass-assignment of unwanted fields
- ResourceController — maps HTTP verbs to CRUD methods automatically
- Flash data — session data living exactly one request