Download the PHP package codaxis/cakephp-parsley-helper without Composer
On this page you can find all versions of the php package codaxis/cakephp-parsley-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codaxis/cakephp-parsley-helper
More information about codaxis/cakephp-parsley-helper
Files in codaxis/cakephp-parsley-helper
Package cakephp-parsley-helper
Short Description CakePHP Form Helper for Parsley.js automatic validation integration
License MIT
Homepage https://github.com/Codaxis/parsley-helper
Informations about the package cakephp-parsley-helper
CakePHP Parsley.js Form Helper
DEPRECATION WARNING: This plugin is not maintained anymore.
CakePHP Form Helper for Parsley.js automatic validation integration
This helper will automatically read validation rules from active form model and assign field attributes accordingly.
Compatible with Cake 2.4.7+
Feel free to make any code/docs contributions or post any issues.
Basic usage
-
Enable the helper plugin in your app/Config/bootstrap.php by doing - or just .
-
Load helper in your . You can use the classname option if you want to keep your helper alias as "Form".
-
Enable Parsley rules integration in any form by setting or in Form->create() options array.
- That's all! When you create an input field, parsley attributes will be set according to the defined validation rules.
Trait usage
If you are running PHP 5.4 or greater, and already using a custom or vendor form helper, you can make use of provided and retain both helper functionalities. You can do so by creating a custom helper in your folder like this: