Jump to content

How to get form elements in a row in ZF 1.12


yoursurrogategod

Recommended Posts

Hi all,

 

This is the HTML that was generated by my form elements:

http://bin.cakephp.org/view/1808069180

 

The relevant information is located from line 3202 to 3347. Basically, say I have a drop-down. I'd like it to be one next to each other (or better yet, have table tags be generated).

 

<form enctype="application/x-www-form-urlencoded" action="" method="post"><dl class="zend_form">
<dt id="passFail00-label"> </dt>
<dd id="passFail00-element">
<select name="passFail00" id="passFail00">
<option value="P" label="Pass" selected="selected">Pass</option>
<option value="F" label="Fail">Fail</option>
</select></dd>
...
</form>

 

This is how my view looks like (the relevant line is 381):

http://bin.cakephp.org/view/1241400830

This is my controller:

http://bin.cakephp.org/view/106144493

This is my form class (the relevant method is buildBottomForm):

http://bin.cakephp.org/view/585393545

http://bin.cakephp.org/view/585393545

How can I get this to display horizontally and not in one column?

Please read about decorators: http://framework.zen...Decorators.html

Thanks, I'm reading a tutorial on that right now. But would you happen to know of an example where decorators are used to specify what gets rendered and how?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.