https://github.com/dereuromark/cakephp-ajax
AJAX for CakePHP: A plugin to ease handling AJAX requests.
https://github.com/dereuromark/cakephp-ajax
ajax cakephp cakephp-plugin php
Last synced: 11 months ago
JSON representation
AJAX for CakePHP: A plugin to ease handling AJAX requests.
- Host: GitHub
- URL: https://github.com/dereuromark/cakephp-ajax
- Owner: dereuromark
- License: mit
- Created: 2015-01-08T22:33:22.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T02:27:23.000Z (over 1 year ago)
- Last Synced: 2024-10-11T06:32:52.171Z (over 1 year ago)
- Topics: ajax, cakephp, cakephp-plugin, php
- Language: PHP
- Homepage:
- Size: 3.97 MB
- Stars: 56
- Watchers: 8
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/Contributing.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cakephp - Ajax plugin - A plugin to ease handling AJAX requests. (Miscellaneous)
README
# CakePHP Ajax Plugin
[](https://github.com/dereuromark/cakephp-ajax/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://codecov.io/gh/dereuromark/cakephp-ajax)
[](https://packagist.org/packages/dereuromark/cakephp-ajax)
[](https://php.net/)
[](LICENSE)
[](https://packagist.org/packages/dereuromark/cakephp-ajax)
[](https://github.com/php-fig-rectified/fig-rectified-standards)
A CakePHP plugin that makes working with AJAX a "piece of cake".
This branch is for **CakePHP 5.0+**. For details see [version map](https://github.com/dereuromark/cakephp-ajax/wiki#cakephp-version-map).
## What is this plugin for?
Basically DRY (Don't repeat yourself) and easy AJAX handling.
### Demo
See the [Sandbox app](https://sandbox.dereuromark.de/sandbox/ajax-examples) for live demos.
### Key features
- Auto-handling via View class mapping and making controller actions available both AJAX and non-AJAX by design.
- Flash message and redirect (prevention) support.
See [my article](https://www.dereuromark.de/2014/01/09/ajax-and-cakephp/) for details on the history of this view class and plugin code.
## Installation & Docs
- [Documentation](docs/README.md)
### Possible TODOs
* Maybe add helpers and additional goodies around auto-complete, edit-in-place, ...