Hello José

Thanks for the reference.  If I interpret the manual properly, I think it 
wants me to store the custom widget under the 
/vendor/cakephp/cakephp/src/View/Widget/ directory structure  ?  

If this is correct then would the custom widget be wiped out every time I 
did a "composer update" ? 

 I found this to be the case when I had managed to default the form 
submission to "formnovalidate " using a different technique under the 
/vendor structure. 

 In the FormHelper.php function widget() I added the line 
unset($data['required']); // turn off HTML5 browser validation 
after the line
unset($data['secure']);

This was replace to the original (or updated) version when I did the 
"composer update".

What I was really hoping for was perhaps a method of setting a /config 
option on the user side.

Regards

Lorne

On Thursday, January 8, 2015 at 11:28:48 PM UTC-5, Lorne Dudley wrote:
>
> I have finally found the method to turn off browser validation so that 
> cakePHP can take control of the validation instead.  
>   
> This works for me.  
>   
>     <?= $this->Form->button(__('Submit'), array('formnovalidate' => true)) 
> ?>  
>   
> Rather than do this for every Form, is there any way to set this option 
> for Forms globally on the user side ?  
>   
> Regards
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to