Re: formHelper-inputs example
Hi, Hi, I'm trying to use the inputs method to logically group a couple of textfields but I haven't figured out how to specify the legend of the fieldset. For example: ?php echo $form-inputs(array('ftp_user',ftp_password')); ? Creates the fieldset but with a default legend of New Server (where Server is the name of the model). If I specify a first parameter with the model name like: ?php echo $form-inputs('Server', array('ftp_user',ftp_password')); ? Then all the fields of the model are included in the fieldset with the legend Server. What I want to do is to group just a couple of the fields of the model but with a custom legend, for example Remote Login Information but I don't get how to do that using the inputs method of formHelper. Ideas ? You can do it using this notation: echo $form-inputs(array('legend' = 'Remote Login Information', 'fields' = array('ftp_user', 'ftp_password') )); -- Matias Lespiau http://www.gignus.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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: formHelper-inputs example
Hi, On Mon, Feb 25, 2008 at 4:38 AM, Matias Lespiau [EMAIL PROTECTED] wrote: You can do it using this notation: echo $form-inputs(array('legend' = 'Remote Login Information', 'fields' = array('ftp_user', 'ftp_password') )); I have tried that before and doesn't work, it creates the fieldset with the specified legend but inside it appears only one text field with the label fields instead of the two specified text fields. Cheers, -- Juan Luis Baptiste --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---
formHelper-inputs example
Hi, I'm trying to use the inputs method to logically group a couple of textfields but I haven't figured out how to specify the legend of the fieldset. For example: ?php echo $form-inputs(array('ftp_user',ftp_password')); ? Creates the fieldset but with a default legend of New Server (where Server is the name of the model). If I specify a first parameter with the model name like: ?php echo $form-inputs('Server', array('ftp_user',ftp_password')); ? Then all the fields of the model are included in the fieldset with the legend Server. What I want to do is to group just a couple of the fields of the model but with a custom legend, for example Remote Login Information but I don't get how to do that using the inputs method of formHelper. Ideas ? Thanks. Cheers, -- Juan Luis Baptiste --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP 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 -~--~~~~--~~--~--~---