📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials CodeIgniter 4 CI4 Interview Prep

CI4 Interview Prep

5 min read Quiz at the end
Interview topics: CI4 vs CI3, Spark, Filters, Entities, allowedFields, Services, flash data.

CI4 Interview Topics

  • HMVC — CI4 uses flat MVC; HMVC possible via modules
  • Auto-routing vs manual — manual routes are safer and recommended
  • Entities vs Models — model is data layer; entity is a rich object
  • Filters — CI4 equivalent of middleware
  • Services — CI4 DI container alternative
  • Query Builder vs raw SQL — builder is safer (parameterized)
  • Flash data — session data that survives exactly one request
  • Forge — database schema builder used in migrations
Topic Quiz · 2 questions

Test your understanding before moving on

1. What makes CI4 different from CI3?
💡 CI4 was a complete rewrite: PSR-4 namespaces, PSR-7 request, typed properties.
2. What is the CI4 equivalent of a Service Provider?
💡 ConfigServices registers and returns shared service instances.