Skip to content

mikadev/cakephp-ajax-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cakephp Ajax Validation

Cakephp ajax validation plugin

Requirements

  • CakePHP >= 2.0
  • Jquery >= 1.7

Installation

  • Clone/Copy the files in this directory into app/Plugin/AjaxValidation
  • Ensure the plugin is loaded in app/Config/bootstrap.php by calling CakePlugin::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)

Usage

  • When a cursor moves out of a form field, run ajax validation immediately from models validation settings.

Sample

not yet...

About

Cakephp ajax validation plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 55.7%
  • PHP 44.3%