Another quick question....

I have gotten everything to render allmost exactly the way i need it to be
using the following

$this->setElementDecorators(array(
        'ViewHelper',
        array(
              array(
                    'inputWrap' => 'HtmlTag',
                    ),
              array('tag' => 'div',
                    'class' => 'formDataRight',
                    ),
              'placement' => 'append'
              ),
        'Label',
        array(
              array('labelWrap' => 'HtmlTag'),
              array('tag' => 'div',
                    'class' => 'formDataLeft',
                    'openOnly' => true,
                    'placement' => 'append'
                    )),
        array(
              array(
                    'labelWrapClose'=>'HtmlTag'
                    ),
              array('tag' => 'div',
                    'closeOnly' => true,
                    'placement' => Zend_Form_Decorator_Abstract::APPEND
                    )
              ),
        array(array('allWrap' => 'HtmlTag'),
              array('tag' => 'div',
                    'class' => 'formEntryLine'),
              )
        ));

the only problem that I have is correctly position the label inside of the
formEntryLeft div tag

the output result from that decorator is

<form id="meHypeForm" enctype="application/x-www-form-urlencoded"
class="form_input" autocomplete="off" action="" method="post">
<div class="formWrapper">
        <div class="formEntryLine">
         <label for="firstName" class="required">First name</label>
                <div class="formDataRight">
                        <input type="text" name="firstName" id="firstName" 
value="">
        </div>
   <div class="formDataLeft"></div>
        </div>
 </div>
 </form>


i bolded the text and italics what it is supposed to be contained within.

I know this is the positioning but I cannot figure out how to position the
label....
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-Decoration-tp20118548p20132123.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to