Skip to content

Instantly share code, notes, and snippets.

@ericclemmons
Created May 17, 2010 21:37

Revisions

  1. ericclemmons created this gist May 17, 2010.
    13 changes: 13 additions & 0 deletions zend_wtform.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    public function persistData($namespace = 'My_Super_Awesome_Form')
    {
    if (null === $this->_session) {
    $this->_session = new Zend_Session_Namespace($namespace);
    }

    if ($this->_session->values) {
    $this->populate($this->_session->values);
    }

    $this->_session->values = $this->getValues();
    }