Make it possible to recreate a form

This commit is contained in:
Johannes Meyer 2014-05-14 11:02:11 +02:00
parent 1637a19c23
commit 33d4142664
1 changed files with 9 additions and 0 deletions

View File

@ -610,4 +610,13 @@ class Form extends Zend_Form
{
$this->buttonsHidden = true;
}
/**
* q&d solution to be able to recreate a form
*/
public function reset()
{
$this->created = false;
$this->clearElements();
}
}