public function render(Zend_View_Interface $view = null) { foreach ($this->getElements() as $element) { $label = $element->getLabel(); if (!empty($label)) { $element->setAttrib('placeholder', $label); } } /** * Rendering. */ return parent::render($view); }