Cakephp ajax validation plugin
- CakePHP >= 2.0
- Jquery >= 1.7
- Clone/Copy the files in this directory into
app/Plugin/AjaxValidation
- Ensure the plugin is loaded in
app/Config/bootstrap.php
by callingCakePlugin::load('AjaxValidation');
- Include the helper in your
AppController.php
or a specific Controller:(Ex. Controller/UsersController.php)public $helpers = array('AjaxValidation.AjaxValidation');
- Set some validations in your Models.(Ex. Model/User.php)
- In your layout add a
echo $this->fetch('ajax_validation');
- Set only
$this->AjaxValidation->active(array('block' => 'ajax_validation'));
in your View you want to use AjaxValidation.(Ex. Users/add.ctp)
- When a cursor moves out of a form field, run ajax validation immediately from models validation settings.
not yet...