Re: Field Naming Convention
http://book.cakephp.org/view/196/options-label Please nayan, read the Book, okay? On 12 Sep 2008, at 13:53, nayan wrote: > > But Kien can we create a input box or check box or radio button or > select with out labe bcoz when i write >> > input('FanType/fantype_name'); ?> > it display FanType Name before my text box and also there is no gap > between label an text box.i need to aply style sheet > > On Aug 20, 1:01 am, kienpham2000 <[EMAIL PROTECTED]> wrote: >> I think I found my own answer, we can use something like this: >> >> input('MyModel.1.myField);?> >> input('MyModel.2.myField);?> >> >> I think with this convention, we can use the saveAll() but my table >> is >> MyISAM which does not support transaction :(. >> >> - Kien >> >> On Aug 18, 3:48 pm, kienpham2000 <[EMAIL PROTECTED]> wrote: >> >>> Hi all cake bakers, >> >>> I'm using the 1.2RC and I followed the field naming convention >>> here to >>> get array of data for a field >>> name:http://book.cakephp.org/view/547/field-naming-convention >> >>> Here is my code to create input fields: >>> input('MyModel.myField.1');?> >>> input('MyModel.myField.2');?> >> >>> But when it displays, my label is 1 and 2 but not My Field. I have >>> to >>> manually set the label like this: >>> input('MyModel.myField.1', array('label' => 'My Field >>> 1'));? >> >>> input('MyModel.myField.2', array('label' => 'My Field >>> 2);?> >> >>> Did I created the field wrong or do I just have to manually type in >>> the label? Also, in plain php, we can just use the two bracket at >>> the >>> end [] and the posted data will automatically create the array for >>> us, >>> can we do something like that with cake using the form helper? >> >>> Thanks all! >>> - Kien >> >> > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Field Naming Convention
But Kien can we create a input box or check box or radio button or select with out labe bcoz when i write input('FanType/fantype_name'); ?> it display FanType Name before my text box and also there is no gap between label an text box.i need to aply style sheet On Aug 20, 1:01 am, kienpham2000 <[EMAIL PROTECTED]> wrote: > I think I found my own answer, we can use something like this: > > input('MyModel.1.myField);?> > input('MyModel.2.myField);?> > > I think with this convention, we can use the saveAll() but my table is > MyISAM which does not support transaction :(. > > - Kien > > On Aug 18, 3:48 pm, kienpham2000 <[EMAIL PROTECTED]> wrote: > > > Hi all cake bakers, > > > I'm using the 1.2RC and I followed the field naming convention here to > > get array of data for a field > > name:http://book.cakephp.org/view/547/field-naming-convention > > > Here is my code to create input fields: > > input('MyModel.myField.1');?> > > input('MyModel.myField.2');?> > > > But when it displays, my label is 1 and 2 but not My Field. I have to > > manually set the label like this: > > input('MyModel.myField.1', array('label' => 'My Field 1'));? > > > input('MyModel.myField.2', array('label' => 'My Field 2);?> > > > Did I created the field wrong or do I just have to manually type in > > the label? Also, in plain php, we can just use the two bracket at the > > end [] and the posted data will automatically create the array for us, > > can we do something like that with cake using the form helper? > > > Thanks all! > > - Kien > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Field Naming Convention
I think I found my own answer, we can use something like this: input('MyModel.1.myField);?> input('MyModel.2.myField);?> I think with this convention, we can use the saveAll() but my table is MyISAM which does not support transaction :(. - Kien On Aug 18, 3:48 pm, kienpham2000 <[EMAIL PROTECTED]> wrote: > Hi all cake bakers, > > I'm using the 1.2RC and I followed the field naming convention here to > get array of data for a field > name:http://book.cakephp.org/view/547/field-naming-convention > > Here is my code to create input fields: > input('MyModel.myField.1');?> > input('MyModel.myField.2');?> > > But when it displays, my label is 1 and 2 but not My Field. I have to > manually set the label like this: > input('MyModel.myField.1', array('label' => 'My Field 1'));? > > input('MyModel.myField.2', array('label' => 'My Field 2);?> > > Did I created the field wrong or do I just have to manually type in > the label? Also, in plain php, we can just use the two bracket at the > end [] and the posted data will automatically create the array for us, > can we do something like that with cake using the form helper? > > Thanks all! > - Kien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Field Naming Convention
Hi all cake bakers, I'm using the 1.2RC and I followed the field naming convention here to get array of data for a field name: http://book.cakephp.org/view/547/field-naming-convention Here is my code to create input fields: input('MyModel.myField.1');?> input('MyModel.myField.2');?> But when it displays, my label is 1 and 2 but not My Field. I have to manually set the label like this: input('MyModel.myField.1', array('label' => 'My Field 1'));? > input('MyModel.myField.2', array('label' => 'My Field 2);?> Did I created the field wrong or do I just have to manually type in the label? Also, in plain php, we can just use the two bracket at the end [] and the posted data will automatically create the array for us, can we do something like that with cake using the form helper? Thanks all! - Kien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---