Beispiel #1
0
 /**
  * Closes a form
  *
  * @return string A form closing tag
  */
 public function close()
 {
     if ($this->app->bound('former.form')) {
         $closing = $this->app['former.form']->close();
     }
     // Destroy instances
     $instances = array('former.form', 'former.form.framework');
     foreach ($instances as $instance) {
         $this->app[$instance] = null;
         unset($this->app[$instance]);
     }
     // Reset populator
     $this->app['former.populator']->reset();
     // Reset all values
     $this->errors = null;
     $this->rules = null;
     return isset($closing) ? $closing : null;
 }