Overview
The Flash plugin provides enhanced flash messaging capabilities for CakePHP applications, including:
- Transient Messages: Temporary messages that can be displayed without page reload
- Message Types: Success, error, warning, and info messages with customizable styling
- AJAX Support: X-Flash header integration for seamless AJAX interactions
- Grouped Messages: Organize messages by type for better user experience
Basic Flash Messages
Explore different types of flash messages and how to display them in your application.
- All flash message types - See all available message types in action
- Grouped types - View-level message grouping
AJAX Integration
The Flash plugin seamlessly integrates with AJAX requests using the X-Flash header, allowing you to display flash messages without full page reloads.
- AJAX Buttons - Basic AJAX flash message handling
- AJAX with Ajax Plugin - Advanced AJAX with redirect support
- AJAX Forms - Form submission with flash messages
Key Features
X-Flash Header
Flash messages are automatically injected into the X-Flash response header for AJAX requests, making it easy to handle flash messages in JavaScript frameworks like HTMX.
Transient Messages
Use transientSuccess(), transientError(), and other transient methods for temporary messages that don't persist across redirects.

