Wednesday, August 6, 2014

Re: Custom FormWidget Vs Custom FormHelper vs ... [Cake 3]

Thanks, but if I look at 

'inputContainerError' => '<div class="input {{type}}{{required}} error">{{content}}{{error}}</div>',

I can remove the {{error}} here but then there will be no way to show it at all by setting ['error'=>true] 

'inputContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>',

There is no way to remove label here... {{content}} has got label inside it.

So I should look at coding a custom helper?

Tarique




On Wed, Aug 6, 2014 at 4:49 PM, José Lorenzo <jose.zap@gmail.com> wrote:
Wouldn't that be possible by altering the inputContainer and inputContainerError templates?


On Wednesday, August 6, 2014 11:30:02 AM UTC+2, Dr. Tarique Sani wrote:
Hi, 

Playing around with form helpers  and form widgets in Cake 3 

Is there a way to override the Basic Widget with my custom Basic Widget and have options 'error'=>false, 'label'=>false by default? 

OR this can't be done in the widget and will have to go into my custom form helper

TIA

Tarique



--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.



--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: