Re: exclude form helper markup?

2008-12-21 Thread Gwoo
http://live.cakephp.org/shows/view/4 --~--~-~--~~~---~--~~ 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-

Re: exclude form helper markup?

2008-12-21 Thread justclint
Thanks guys!!! Yeah, just like you gearvOsh, I am working around a pre- css project. But ideally I do want to use the cakephp format as much as possible so I will definitely take your Adam on future projects. But this simple solution is a significant help to me so thanks again! justclint On Dec

Re: exclude form helper markup?

2008-12-21 Thread gearvOsh
@Adam - Theres nothing wrong with it, but when you have fancy forms and pre-cssed systems, cakes markup just gets in the way/breaks things. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to t

Re: exclude form helper markup?

2008-12-21 Thread gearvOsh
Yes I really dislike that also, you have to do this everytime. input('email', array('div' => false, 'label' => false)); ?> Div removes the surrounding div, and label removes the label. Then you can create the label manually: label('email', 'Email:', array('class' => 'label')); ?> --~--~---

Re: exclude form helper markup?

2008-12-21 Thread Adam Royle
I was the same as you when I first started, but over time I started seeing the usefulness of cake's magic. You can change the label easily by doing this: input('email', array('label' => 'Your Email Address:')); ?> Cheers, Adam On Dec 22, 6:58 am, justclint wrote: > I notice when I use the for

exclude form helper markup?

2008-12-21 Thread justclint
I notice when I use the form helper like: input('Email'); ?> it keeps resulting with an added div tag around it like so: Email Is there a way to prevent the form adding its own markup? Also, I notice cakephp automatically gives the input name the name of the label. But say I want my label and