Created
May 17, 2010 21:37
-
-
Save ericclemmons/404259 to your computer and use it in GitHub Desktop.
This is how easy Zend_Form->persistDate() is
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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