Event-Aware Pagination in CodeIgniter 4 Models

Discover why your CodeIgniter 4 pagination shows incorrect total counts when using model events, and implement a simple fix that ensures consistent filtering across both count and result queries.

July 14, 2025 · 4 min

Implementing User Impersonation in CodeIgniter Shield

Implement secure user impersonation in CodeIgniter 4 using the Shield authentication system and a modular architecture.

July 2, 2025 · 7 min

Beyond MVC: Adding Managers to Your CodeIgniter 4 Applications

Learn how to extend the traditional MVC pattern with Managers in CodeIgniter 4 to handle complex business logic and create more maintainable applications.

June 15, 2025 · 5 min

Managing Multiple .env Files for Multi-Client Applications in CodeIgniter 4

Extend CodeIgniter 4 to support multiple .env files for multi-client applications using a custom Boot class that automatically loads client-specific configurations based on domain detection.

June 2, 2025 · 4 min

Scheduling Unique Tasks with CodeIgniter

When you’re scheduling tasks in CodeIgniter 4, it’s not uncommon to run into issues where the same task gets triggered before the previous one finishes. This can cause anything from duplicate processing to race conditions and even server slowdowns. To help with that, CodeIgniter Tasks provides a built-in method called singleInstance(). ...

May 6, 2025 · 2 min