ajfranzoia / cakephp-parsley-helper Goto Github PK
View Code? Open in Web Editor NEWCakePHP Form Helper for Parsley.js automatic validation integration
License: MIT License
CakePHP Form Helper for Parsley.js automatic validation integration
License: MIT License
I've got some file attachment fields using the attach plugin. They are always being flagged as required by parsley even though they are not. If i turn off parsley completely, they are not required.
Maybe this seems like a silly question but how do I install this into my code base?
Obviously I can copy the helper file into Views/Helpers... but what about the library file and the trait file?
I'm getting errors like this:
Missing Plugin
Error: The application is trying to load a file from the ParsleyHelper plugin
Error: Make sure your plugin ParsleyHelper is in the app/Plugin directory and was loaded
--- and ---
Plugin ParsleyHelper could not be found
Any prospect of a Cake3 version?
Hi,
Embarrassingly, i can't get the plugin to work. Probably me being silly?
I've got my appController helper array like so:
public $helpers = array(
"Html",
"Form"=> array('className' => 'ParsleyHelper.ParsleyForm'),
"Js",
"Session",
and then my bootstrap has:
CakePlugin::load('ParsleyHelper');
and then in my form i just have:
echo $this->Form->create('Person', [ 'parsley' => true]);
and i downloaded the zip of the repo & moved it to /Plugins/ParsleyHelper
I get the error:
Fatal error: Call to a member function processInput() on a non-object in /Users/willbarker/Sites/bos/app/Plugin/ParsleyHelper/View/Helper/ParsleyFormHelper.php on line 56
Any pointers would be great. I've probably misunderstood the documenation somewhere? I'm on cakephp 2.4, php 5.4
W
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.