OK, I have no problem getting Zend Form working and running....the only
problem I am currently experiencing is that I have a layout which consists
of the following
<div id="rightPage">
Need to put some form elements here
</div>
<div id="leftPage">
Need to put some form elements here
</div>
and need
<form>
<div id="rightPage">
Need to put some form elements here
</div>
<div id="leftPage">
Need to put some form elements here
</div>
</form>
and I currently have a setup class extending Zend_Form that is ued by
calling a single method such as $form->myForm(); which creates the form
elements automatically and the adds the decoration...which I then only call
$this->view->viewvar = $this->form->render().
the decorator script I am using is at the bottom of the post.
Now how could I put in this content as so without having to create another
class to do so.
array(
array(
'inputOpen' => 'HtmlTag',
),
array('tag' => 'div',
'class' => 'formDataRight',
'openOnly' => true
),
'placement' => Zend_Form_Decorator_Abstract::PREPEND
),
array('Description',
array(
'placement' => array('inputClose', 'prepend'),
'tag' => 'div',
'class' => 'helpLine')
),
array(
array(
'inputClose' => 'HtmlTag',
),
array('tag' => 'div',
'closeOnly' => true
),
'placement' => Zend_Form_Decorator_Abstract::PREPEND
),
array(
array('labelWrapOpen' => 'HtmlTag'),
array('tag' => 'div',
'class' => 'formDataLeft',
'openOnly' => true,
'placement' => Zend_Form_Decorator_Abstract::APPEND
)),
array('Label',
array(
'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'),
)
));
Thnx 4 Your Help!
-----
Nickolas Whiting
Developer
http://xstudiosinc.com Xstudios
--
View this message in context:
http://www.nabble.com/Zend_Form-Element-Layouts-tp20232612p20232612.html
Sent from the Zend Framework mailing list archive at Nabble.com.