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:
<?php class My_Form_Element_Text extends Zend_Form_Element_Text { public function __construct($spec, $options = null) { parent::__construct($spec, $options); 'ViewScript', ) ) ); } }
i plik widoku Forms/text.phtml
<p class="element<?php if ($this->element->hasErrors()): ?> errors<?php endif; ?>"> <?php echo $this->{$this->element->helper}($this->element->getName(), $this->element->getValue(), $this->element->getAttribs()) ?> </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.