Skip to content

Instantly share code, notes, and snippets.

@ericclemmons
Created May 17, 2010 21:37
Show Gist options
  • Save ericclemmons/404259 to your computer and use it in GitHub Desktop.
Save ericclemmons/404259 to your computer and use it in GitHub Desktop.
This is how easy Zend_Form->persistDate() is
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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment