Witam,
mam problem z formularzem, po wysłaniu metoda $this->_request->getPost() nie zwraca mi tablicę elementów taką jakby formularz nie był wypełniony. Wszystko przez nadpisanie przeze mnie defaulotwych dekoratorów na ViewScript.
Przykładowa klasa:
  1. <?php
  2. class My_Form_Element_Text extends Zend_Form_Element_Text {
  3. public function __construct($spec, $options = null) {
  4. parent::__construct($spec, $options);
  5. $this->setDecorators(array(
  6. 'ViewScript',
  7. array('viewScript' => 'Forms/text.phtml')
  8. )
  9. )
  10. );
  11. }
  12. }

i plik widoku Forms/text.phtml
  1. <p class="element<?php if ($this->element->hasErrors()): ?> errors<?php endif; ?>">
  2. <?php echo $this->formLabel($this->element->getName(), $this->element->getLabel()) ?>
  3. <?php echo $this->{$this->element->helper}($this->element->getName(), $this->element->getValue(), $this->element->getAttribs()) ?>
  4. </p>


Jak wykorzystuję w formularzu element My_Form_Element_Text to to value po wysłaniu jest puste natomiast Zend_Form_Element przesyła dane poprawnie. Czy ktoś jest w stanie wskazać gdzie może leżeć przyczyna.