you could probably extend the form helper (FormExtHelper etc) and work your changes in in this class. you could also try to use inputDefaults() in each form, but will be less DRY.
On 20 Dez., 23:04, Ronen Amiel <holytay...@gmail.com> wrote: > Hey everyone, > > I'm trying to get the hang of CakePHP, I really like the way this > framework is built, but I'm having a lot of trouble getting my code > right with the form helper class. > > I find it very hard to get the HTML I want from an input without > inserting a lot of my html into --before--, --after-- and --between--, > which makes my code hard to read and maintain. For instance, I'm > trying to get html that looks like this with the form helper class: > > <label class="nopadding">Gender</label> > <span class="radio"><input type="radio" name="gender" value="male" /> > Male</span> > <span class="radio"><input type="radio" name="gender" value="female" / > > > Female</span> > > I tried searching and reading the documentation but I didn't find a > way around it without using --before--, --after--, --between--, and -- > separator--. > > Is there a cleaner way to get what I want or that I have to go the > ugly way to get what I want? > > Thanks in advance, ;-) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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