Set 'div' => false for the form and the inputs (see inputDefaults for the Form helper - http://book.cakephp.org/view/1616/x1-3-improvements), then hand crank the dl/dt/dd structure yourself.
Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 1 Jun 2011, at 23:32, dhinged wrote: > I am trying to use a form built from a template, but the form elements > are side-by-side using definition lists (dl, dt, dd) and I have not > found a way to have CakePHP to create a form built this way; it only > creates it with divs and labels. > > Basically I want this: > > <form> > <dl> > <dt><label>Whatever</label></dt> > <dd><input name="whatever" /></dd> > </dl> > </form> > > Right now, Cake does this: > > <form> > <div> > <label>Whatever</label></label> > <input name="whatever /> > </div> > </form> > > I really miss Zend Framework's Decorator class, and I have not found > an equivalent or workaround with Cake. Is there a solution to this > outside of creating my own custom FormHelper? > > -- > 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 > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
