zend-form-element

How to print a group display individually from its content?

帅比萌擦擦* 提交于 2019-11-26 23:42:49
问题 I'm using Zend Framework and Zend_Form to render my form. But as I found it hard to customize it, I decided to print elements individually. Problem is, I don't know how to print individual elements inside a display group. I know how to print my display groups (fieldsets) but I need to add something inside it (like a <div class="spacer"></div> to cancel the float:left . Is there any way to display the group only without its content so I can print them individually myself? Thank you for your

How do I use ViewScripts on Zend_Form File Elements?

帅比萌擦擦* 提交于 2019-11-26 09:27:36
问题 I am using this ViewScript for my standard form elements: <div class=\"field\" id=\"field_<?php echo $this->element->getId(); ?>\"> <?php if (0 < strlen($this->element->getLabel())) : ?> <?php echo $this->formLabel($this->element->getName(), $this->element->getLabel());?> <?php endif; ?> <span class=\"value\"><?php echo $this->{$this->element->helper}( $this->element->getName(), $this->element->getValue(), $this->element->getAttribs() ) ?></span> <?php if (0 < $this->element->getMessages()-