Re: FormHelper - $form-inputs() - $validate
You do all of this through the option array in the $form-input call. For example to turn off the label you add 'label' = false. There are a lot of options so you should read the manual section. Rick On Jun 18, 6:40 pm, tpynegar tpyne...@hotmail.com wrote: Hi, I'm trying to put a form together using this tutorial http://snook.ca/archives/cakephp/contact_form_cakephp/ where basically you put together a form and error messages etc from the model's $validate member. This is all working however i was wondering how to format the resulting form as in resize the text area's and to add line breaks after the elements title and also how to remove the New Contact from the top of the form elements. Basically how do i control the formating of the $form-inputs() command. Thanks, Tim. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: FormHelper - $form-inputs() - $validate
Hey Rick, Thanks for the reply, i've found another similar tutorials http://php.dzone.com/news/cakephp-12-creating-a-contact- The issue is that i'd like to use the _schema as defined by the model and then call echo $form-inputs(); What i'm trying to achieve is when a validation fail's i'd like the error message to come underneath the form element. As in i can setup the form using $form-input but i didn't get the error message when one of the validation's failed unless i outputted it myself. Thanks, Tim. On Jun 19, 1:57 pm, Rick will...@gmail.com wrote: You do all of this through the option array in the $form-input call. For example to turn off the label you add 'label' = false. There are a lot of options so you should read the manual section. Rick On Jun 18, 6:40 pm, tpynegar tpyne...@hotmail.com wrote: Hi, I'm trying to put a form together using this tutorial http://snook.ca/archives/cakephp/contact_form_cakephp/ where basically you put together a form and error messages etc from the model's $validate member. This is all working however i was wondering how to format the resulting form as in resize the text area's and to add line breaks after the elements title and also how to remove the New Contact from the top of the form elements. Basically how do i control the formating of the $form-inputs() command. Thanks, Tim.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
FormHelper - $form-inputs() - $validate
Hi, I'm trying to put a form together using this tutorial http://snook.ca/archives/cakephp/contact_form_cakephp/ where basically you put together a form and error messages etc from the model's $validate member. This is all working however i was wondering how to format the resulting form as in resize the text area's and to add line breaks after the elements title and also how to remove the New Contact from the top of the form elements. Basically how do i control the formating of the $form-inputs() command. Thanks, Tim. --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---