yoursurrogategod Posted January 23, 2013 Share Posted January 23, 2013 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? Link to comment https://forums.phpfreaks.com/topic/273552-how-to-get-form-elements-in-a-row-in-zf-112/ Share on other sites More sharing options...
yoursurrogategod Posted January 23, 2013 Author Share Posted January 23, 2013 Actually, if there is a way for me to select which elements get rendered and when, I could do away with this problem and just specify what to render and when. Any way I can do that in zend? Link to comment https://forums.phpfreaks.com/topic/273552-how-to-get-form-elements-in-a-row-in-zf-112/#findComment-1407816 Share on other sites More sharing options...
mwalkowiak Posted January 24, 2013 Share Posted January 24, 2013 Please read about decorators: http://framework.zend.com/manual/1.12/en/zend.form.standardDecorators.html Link to comment https://forums.phpfreaks.com/topic/273552-how-to-get-form-elements-in-a-row-in-zf-112/#findComment-1407849 Share on other sites More sharing options...
yoursurrogategod Posted January 24, 2013 Author Share Posted January 24, 2013 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? Link to comment https://forums.phpfreaks.com/topic/273552-how-to-get-form-elements-in-a-row-in-zf-112/#findComment-1408004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.