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

2014-08-06 Thread Dr. Tarique Sani
Actually the best thing would be if the whole project used a popular CSS
framework but I know it is too much to ask at this point and a well written
bootstrap based formhelper would take away most of my pain at this point.

I think I will borrow the widgets and helpers from the crud-view plugin :)

Cheers
T




On Wed, Aug 6, 2014 at 8:14 PM, Thomas von Hassel  wrote:

> Indeed, the only things i would like is:
>
> place checkbox inside it’s label like bootstrap wants it without hacking
> things together
> set a class on a container from field to field
>
>
> On 06 Aug 2014, at 16:30, Dr. Tarique Sani  wrote:
>
> Thanks for the URL that is helpful.
>
> Regards
> Tarique
>
>
> On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo  wrote:
>
>> you can change the widgets to whatever you like, including the basic
>> widget. Here is a plugin that does that, for example:
>>
>> https://github.com/FriendsOfCake/crud-view#example-controller
>>
>>
>> On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:
>>>
>>> It is cleaner … and maybe i just need to fiddle with it some more.
>>>
>>> For instance being able to set a class to the container div without
>>> having to make a template would be nice ?
>>>
>>> On 06 Aug 2014, at 13:42, Dr. Tarique Sani 
>>> wrote:
>>>
>>> But template is a much cleaner way to do it. Most of the times you can
>>> just define templates and get away with it.
>>>
>>> I am loving it!
>>>
>>> T
>>>
>>>
>>> On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel 
>>> wrote:
>>>
 Hey

 If i can chime in, the template system is very clever, but in
 comparison to the way it was done in 2.x there are quote a few more hoops
 to go though to achieve certain things.

 /thomas


 On 06 Aug 2014, at 13:30, Dr. Tarique Sani 
 wrote:

 Thanks, but if I look at

 'inputContainerError' => '{{content}}{{error}}',

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

 'inputContainer' => '{{
 content}}',

 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 
 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+unsubscr...@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+unsubscr...@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.



 --
 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+unsubscr...@googlegroups.com.
 To

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

2014-08-06 Thread Thomas von Hassel
Indeed, the only things i would like is:

place checkbox inside it's label like bootstrap wants it without hacking things 
together
set a class on a container from field to field


On 06 Aug 2014, at 16:30, Dr. Tarique Sani  wrote:

> Thanks for the URL that is helpful.
> 
> Regards
> Tarique
> 
> 
> On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo  wrote:
> you can change the widgets to whatever you like, including the basic widget. 
> Here is a plugin that does that, for example:
> 
> https://github.com/FriendsOfCake/crud-view#example-controller
> 
> 
> On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:
> It is cleaner ... and maybe i just need to fiddle with it some more.
> 
> For instance being able to set a class to the container div without having to 
> make a template would be nice ?
> 
> On 06 Aug 2014, at 13:42, Dr. Tarique Sani  wrote:
> 
>> But template is a much cleaner way to do it. Most of the times you can just 
>> define templates and get away with it. 
>> 
>> I am loving it! 
>> 
>> T
>> 
>> 
>> On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel  wrote:
>> Hey
>> 
>> If i can chime in, the template system is very clever, but in comparison to 
>> the way it was done in 2.x there are quote a few more hoops to go though to 
>> achieve certain things.
>> 
>> /thomas
>> 
>> 
>> On 06 Aug 2014, at 13:30, Dr. Tarique Sani  wrote:
>> 
>>> Thanks, but if I look at 
>>> 
>>> 'inputContainerError' => '{{content}}{{error}}',
>>> 
>>> I can remove the {{error}} here but then there will be no way to show it at 
>>> all by setting ['error'=>true] 
>>> 
>>> 'inputContainer' => '{{content}}',
>>> 
>>> 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  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+unsubscr...@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+unsubscr...@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.
>> 
>> 
>> -- 
>> 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+unsubscr...@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

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

2014-08-06 Thread Dr. Tarique Sani
Thanks for the URL that is helpful.

Regards
Tarique


On Wed, Aug 6, 2014 at 6:15 PM, José Lorenzo  wrote:

> you can change the widgets to whatever you like, including the basic
> widget. Here is a plugin that does that, for example:
>
> https://github.com/FriendsOfCake/crud-view#example-controller
>
>
> On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:
>>
>> It is cleaner … and maybe i just need to fiddle with it some more.
>>
>> For instance being able to set a class to the container div without
>> having to make a template would be nice ?
>>
>> On 06 Aug 2014, at 13:42, Dr. Tarique Sani  wrote:
>>
>> But template is a much cleaner way to do it. Most of the times you can
>> just define templates and get away with it.
>>
>> I am loving it!
>>
>> T
>>
>>
>> On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel 
>> wrote:
>>
>>> Hey
>>>
>>> If i can chime in, the template system is very clever, but in comparison
>>> to the way it was done in 2.x there are quote a few more hoops to go though
>>> to achieve certain things.
>>>
>>> /thomas
>>>
>>>
>>> On 06 Aug 2014, at 13:30, Dr. Tarique Sani 
>>> wrote:
>>>
>>> Thanks, but if I look at
>>>
>>> 'inputContainerError' => '{{content}}{{error}}',
>>>
>>> I can remove the {{error}} here but then there will be no way to show it
>>> at all by setting ['error'=>true]
>>>
>>> 'inputContainer' => '{{
>>> content}}',
>>>
>>> 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  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+unsubscr...@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+unsubscr...@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.
>>>
>>>
>>>
>>> --
>>> 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+unsubscr...@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+unsubscr...@googlegrou

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

2014-08-06 Thread José Lorenzo
I can see how having that would be useful. Maybe converting the 'container' 
logic into its own widget would be the best thing. Can you open a ticket 
for that?

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+unsubscr...@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.


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

2014-08-06 Thread José Lorenzo
you can change the widgets to whatever you like, including the basic 
widget. Here is a plugin that does that, for example:

https://github.com/FriendsOfCake/crud-view#example-controller

On Wednesday, August 6, 2014 1:52:02 PM UTC+2, Thomas von Hassel wrote:
>
> It is cleaner … and maybe i just need to fiddle with it some more.
>
> For instance being able to set a class to the container div without having 
> to make a template would be nice ?
>
> On 06 Aug 2014, at 13:42, Dr. Tarique Sani  wrote:
>
> But template is a much cleaner way to do it. Most of the times you can 
> just define templates and get away with it. 
>
> I am loving it! 
>
> T
>
>
> On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel  
> wrote:
>
>> Hey
>>
>> If i can chime in, the template system is very clever, but in comparison 
>> to the way it was done in 2.x there are quote a few more hoops to go though 
>> to achieve certain things.
>>
>> /thomas
>>
>>
>> On 06 Aug 2014, at 13:30, Dr. Tarique Sani  wrote:
>>
>> Thanks, but if I look at 
>>
>> 'inputContainerError' => '{{content}}{{error}}',
>>  
>> I can remove the {{error}} here but then there will be no way to show it 
>> at all by setting ['error'=>true] 
>>
>> 'inputContainer' => '{{content}}',
>>
>> 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  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+unsubscr...@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+unsubscr...@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.
>>
>>
>>
>> -- 
>> 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+unsubscr...@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+unsubscr...@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.
>
>
>

-- 
Like Us on FaceBook https://w

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

2014-08-06 Thread Thomas von Hassel
It is cleaner ... and maybe i just need to fiddle with it some more.

For instance being able to set a class to the container div without having to 
make a template would be nice ?

On 06 Aug 2014, at 13:42, Dr. Tarique Sani  wrote:

> But template is a much cleaner way to do it. Most of the times you can just 
> define templates and get away with it. 
> 
> I am loving it! 
> 
> T
> 
> 
> On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel  wrote:
> Hey
> 
> If i can chime in, the template system is very clever, but in comparison to 
> the way it was done in 2.x there are quote a few more hoops to go though to 
> achieve certain things.
> 
> /thomas
> 
> 
> On 06 Aug 2014, at 13:30, Dr. Tarique Sani  wrote:
> 
>> Thanks, but if I look at 
>> 
>> 'inputContainerError' => '{{content}}{{error}}',
>> 
>> I can remove the {{error}} here but then there will be no way to show it at 
>> all by setting ['error'=>true] 
>> 
>> 'inputContainer' => '{{content}}',
>> 
>> 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  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+unsubscr...@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+unsubscr...@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.
> 
> 
> -- 
> 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+unsubscr...@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+unsubscr...@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.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.

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

2014-08-06 Thread Dr. Tarique Sani
But template is a much cleaner way to do it. Most of the times you can just
define templates and get away with it.

I am loving it!

T


On Wed, Aug 6, 2014 at 5:10 PM, Thomas von Hassel  wrote:

> Hey
>
> If i can chime in, the template system is very clever, but in comparison
> to the way it was done in 2.x there are quote a few more hoops to go though
> to achieve certain things.
>
> /thomas
>
>
> On 06 Aug 2014, at 13:30, Dr. Tarique Sani  wrote:
>
> Thanks, but if I look at
>
> 'inputContainerError' => '{{content}}{{error}}',
>
> I can remove the {{error}} here but then there will be no way to show it
> at all by setting ['error'=>true]
>
> 'inputContainer' => '{{content}}',
>
> 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  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+unsubscr...@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+unsubscr...@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.
>
>
>  --
> 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+unsubscr...@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+unsubscr...@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.


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

2014-08-06 Thread Thomas von Hassel
Hey

If i can chime in, the template system is very clever, but in comparison to the 
way it was done in 2.x there are quote a few more hoops to go though to achieve 
certain things.

/thomas


On 06 Aug 2014, at 13:30, Dr. Tarique Sani  wrote:

> Thanks, but if I look at 
> 
> 'inputContainerError' => '{{content}}{{error}}',
> 
> I can remove the {{error}} here but then there will be no way to show it at 
> all by setting ['error'=>true] 
> 
> 'inputContainer' => '{{content}}',
> 
> 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  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+unsubscr...@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+unsubscr...@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.

-- 
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+unsubscr...@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.


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

2014-08-06 Thread Dr. Tarique Sani
Thanks, but if I look at

'inputContainerError' => '{{content}}{{error}}',

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

'inputContainer' => '{{content}}',

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  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+unsubscr...@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+unsubscr...@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.


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

2014-08-06 Thread José Lorenzo
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+unsubscr...@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.