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.

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.

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.


Send your feedback or bugreport!