JSON and HTML responses
Render HTML fragments or serialize view variables from your controller actions.
Handle Ajax requests, redirects, and flash messages in CakePHP controllers.
Install the plugin, then follow the Getting started example to call a controller action with the browser's fetch() API.
Ajax Component selects Ajax handling for configured actions and request detectors. It can include flash messages and turn controller redirects into JSON responses.
Ajax View renders HTML fragments or serializes view variables. Read the overview to decide when to use the plugin or CakePHP's core JsonView.