Wednesday, June 1, 2011

Is it possible for Cake to create a definition list form?

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: